Skip to content

Commit

Permalink
Do not show for preview window
Browse files Browse the repository at this point in the history
Signed-off-by: Zang MingJie <zealot0630@gmail.com>
  • Loading branch information
kghost committed Jul 16, 2018
1 parent f4f23c7 commit 39fdc2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/syntastic/loclist.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 39fdc2a

Please sign in to comment.