Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit ef6a08f

Browse files
committed
Do not show for preview window
Signed-off-by: Zang MingJie <zealot0630@gmail.com>
1 parent 9e1b2a8 commit ef6a08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/syntastic/loclist.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ function! g:SyntasticLoclist.show() abort " {{{2
313313
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'loclist: show')
314314
call self.setloclist(0)
315315

316-
if !self.isEmpty()
316+
if !&previewwindow && !self.isEmpty()
317317
let num = winnr()
318318
execute 'lopen ' . syntastic#util#var('loc_list_height')
319319
if num != winnr()

0 commit comments

Comments
 (0)