Merge pull request #2199 from kghost/master

Bug fix: don't get triggered for preview window.
This commit is contained in:
LCD 047 2018-07-16 14:22:18 +03:00 committed by GitHub
commit 0dde090ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()