From ef6a08f02f1ce373030595e6b329b928bb4affdc Mon Sep 17 00:00:00 2001 From: Zang MingJie Date: Mon, 16 Jul 2018 18:46:44 +0800 Subject: [PATCH] Do not show for preview window Signed-off-by: Zang MingJie --- 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()