Nimbin[12]?Mirrors & Forks / syntastic / commits / 1a27e741

syntastic git · master

syntastic vim plugin (fork)

vim fork · first commit 2009-07-10 · last commit 2022-07-10 (4 years ago) · synced 3 days ago · upstream: github.com/vim-syntastic/syntastic

Vim Script 99%
git clone https://git.christianimmanuel.de/mirrors-forks/syntastic.gitwget https://git.christianimmanuel.de/mirrors-forks/syntastic/archive/syntastic.tar.gz

Manual: add a note about "shfmt -w".

LCD 47 · 2019-10-23 13:56 · 1a27e74114d300e425b479e3aac528b2b9bcb8ad

 doc/syntastic-checkers.txt    |  4 ++++
 plugin/syntastic.vim          |  2 +-
 plugin/syntastic/balloons.vim | 19 ++++++++++++++-----
 3 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/doc/syntastic-checkers.txt b/doc/syntastic-checkers.txt
index 8fcbe8bb..4ba49619 100644
--- a/doc/syntastic-checkers.txt
+++ b/doc/syntastic-checkers.txt
@@ -6388,6 +6388,10 @@ Checker options~
 This checker is initialised using the "makeprgBuild()" function and thus it
 accepts the standard options described at |syntastic-config-makeprg|.
 
+Note~
+
+Automatically formatting (option "-w") is not supported.
+
 ==============================================================================
 SYNTAX CHECKERS FOR SLIM                             *syntastic-checkers-slim*
 
diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim
index c2ef4ad3..c9410897 100644
--- a/plugin/syntastic.vim
+++ b/plugin/syntastic.vim
@@ -19,7 +19,7 @@ if has('reltime')
     lockvar! g:_SYNTASTIC_START
 endif
 
-let g:_SYNTASTIC_VERSION = '3.10.0-2'
+let g:_SYNTASTIC_VERSION = '3.10.0-3'
 lockvar g:_SYNTASTIC_VERSION
 
 " Sanity checks {{{1
diff --git a/plugin/syntastic/balloons.vim b/plugin/syntastic/balloons.vim
index 6fa2a16a..a62b419b 100644
--- a/plugin/syntastic/balloons.vim
+++ b/plugin/syntastic/balloons.vim
@@ -3,7 +3,7 @@ if exists('g:loaded_syntastic_notifier_balloons') || !exists('g:loaded_syntastic
 endif
 let g:loaded_syntastic_notifier_balloons = 1
 
-if !has('balloon_eval')
+if !has('balloon_eval') && !has('balloon_eval_term')
     let g:syntastic_enable_balloons = 0
 endif
 
@@ -17,7 +17,7 @@ function! g:SyntasticBalloonsNotifier.New() abort " {{{2
 endfunction " }}}2
 
 function! g:SyntasticBalloonsNotifier.enabled() abort " {{{2
-    return has('balloon_eval') && syntastic#util#var('enable_balloons')
+    return (has('balloon_eval') || has('balloon_eval_term')) && syntastic#util#var('enable_balloons')
 endfunction " }}}2
 
 " Update the error balloons
@@ -26,7 +26,12 @@ function! g:SyntasticBalloonsNotifier.refresh(loclist) abort " {{{2
     if self.enabled() && !a:loclist.isEmpty()
         let b:syntastic_private_balloons = a:loclist.balloons()
         if !empty(b:syntastic_private_balloons)
-            set ballooneval balloonexpr=SyntasticBalloonsExprNotifier()
+            set balloonexpr=SyntasticBalloonsExprNotifier()
+            if has('balloon_eval')
+                set ballooneval
+            elseif has('balloon_eval_term')
+                set balloonevalterm
+            endif
         endif
     endif
 endfunction " }}}2
@@ -34,9 +39,13 @@ endfunction " }}}2
 " Reset the error balloons
 " @vimlint(EVL103, 1, a:loclist)
 function! g:SyntasticBalloonsNotifier.reset(loclist) abort " {{{2
-    if has('balloon_eval') && !empty(get(b:, 'syntastic_private_balloons', {}))
+    if (has('balloon_eval') || has('balloon_eval_term')) && !empty(get(b:, 'syntastic_private_balloons', {}))
         call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'balloons: reset')
-        set noballooneval
+        if has('balloon_eval')
+            set noballooneval
+        elseif has('balloon_eval_term')
+            set noballoonevalterm
+        endif
     endif
     unlet! b:syntastic_private_balloons
 endfunction " }}}2