From 281b29487fdcfa201411e0d1d5db3a0f6fc3b71e Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Tue, 22 Dec 2015 08:38:57 +0200 Subject: [PATCH] Avoid checking the preview window. --- plugin/syntastic.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 1a111890..0400111c 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.7.0-63' +let g:_SYNTASTIC_VERSION = '3.7.0-64' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 @@ -662,7 +662,8 @@ function! s:_skip_file() abort " {{{2 let fname = expand('%', 1) let skip = s:_is_quitting(bufnr('%')) || get(b:, 'syntastic_skip_checks', 0) || \ (&buftype !=# '') || !filereadable(fname) || getwinvar(0, '&diff') || - \ s:_ignore_file(fname) || fnamemodify(fname, ':e') =~? g:syntastic_ignore_extensions + \ getwinvar(0, '&previewwindow') || s:_ignore_file(fname) || + \ fnamemodify(fname, ':e') =~? g:syntastic_ignore_extensions if skip call syntastic#log#debug(g:_SYNTASTIC_DEBUG_TRACE, '_skip_file: skipping checks') endif @@ -690,6 +691,9 @@ function! s:_explain_skip(filetypes) abort " {{{2 if getwinvar(0, '&diff') call add(why, 'diff mode') endif + if getwinvar(0, '&previewwindow') + call add(why, 'preview window') + endif if s:_ignore_file(fname) call add(why, 'filename matching g:syntastic_ignore_files') endif