Skip to content

Commit

Permalink
Merge pull request vim-syntastic#2199 from kghost/master
Browse files Browse the repository at this point in the history
Bug fix: don't get triggered for preview window.
  • Loading branch information
lcd047 authored Jul 16, 2018
2 parents f4f23c7 + 39fdc2a commit 4846e4b
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 4846e4b

Please sign in to comment.