Merge pull request #2199 from kghost/master
Bug fix: don't get triggered for preview window.
This commit is contained in:
commit
0dde090ed4
@ -313,7 +313,7 @@ function! g:SyntasticLoclist.show() abort " {{{2
|
|||||||
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'loclist: show')
|
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'loclist: show')
|
||||||
call self.setloclist(0)
|
call self.setloclist(0)
|
||||||
|
|
||||||
if !self.isEmpty()
|
if !&previewwindow && !self.isEmpty()
|
||||||
let num = winnr()
|
let num = winnr()
|
||||||
execute 'lopen ' . syntastic#util#var('loc_list_height')
|
execute 'lopen ' . syntastic#util#var('loc_list_height')
|
||||||
if num != winnr()
|
if num != winnr()
|
||||||
|
Loading…
Reference in New Issue
Block a user