Nimbin[12]?Mirrors & Forks / syntastic / commits / ef6a08f0

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

Do not show for preview window

Zang MingJie · 2018-07-16 10:46 · ef6a08f02f1ce373030595e6b329b928bb4affdc

Signed-off-by: Zang MingJie <zealot0630@gmail.com>
 plugin/syntastic/loclist.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/syntastic/loclist.vim b/plugin/syntastic/loclist.vim
index 3ad93750..bd4b2bb1 100644
--- a/plugin/syntastic/loclist.vim
+++ b/plugin/syntastic/loclist.vim
@@ -313,7 +313,7 @@ function! g:SyntasticLoclist.show() abort " {{{2
     call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'loclist: show')
     call self.setloclist(0)
 
-    if !self.isEmpty()
+    if !&previewwindow && !self.isEmpty()
         let num = winnr()
         execute 'lopen ' . syntastic#util#var('loc_list_height')
         if num != winnr()