Do not show for preview window

Signed-off-by: Zang MingJie <zealot0630@gmail.com>
This commit is contained in:
Zang MingJie 2018-07-16 18:46:44 +08:00
parent 9e1b2a8620
commit ef6a08f02f
No known key found for this signature in database
GPG Key ID: CE1F766CAF00382D

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