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

Commit 0dde090

Browse files
authored
Merge pull request #2199 from kghost/master
Bug fix: don't get triggered for preview window.
2 parents 9e1b2a8 + ef6a08f commit 0dde090

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)