From 4605886ea744862ad12e3e044be639e81c6b426c Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Sun, 3 May 2015 19:45:24 +0300 Subject: [PATCH] Safer opening of the error window (@blueyed). --- plugin/syntastic.vim | 2 +- plugin/syntastic/highlighting.vim | 2 +- plugin/syntastic/loclist.vim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index ff9c1085..ee35b79a 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.6.0-78' +let g:_SYNTASTIC_VERSION = '3.6.0-79' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/plugin/syntastic/highlighting.vim b/plugin/syntastic/highlighting.vim index 0fa943ea..a9e1a080 100644 --- a/plugin/syntastic/highlighting.vim +++ b/plugin/syntastic/highlighting.vim @@ -29,7 +29,7 @@ function! g:SyntasticHighlightingNotifier.enabled() abort " {{{2 return s:has_highlighting && syntastic#util#var('enable_highlighting') endfunction " }}}2 -" Sets error highlights in the cuirrent window +" Sets error highlights in the current window function! g:SyntasticHighlightingNotifier.refresh(loclist) abort " {{{2 if self.enabled() call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'highlighting: refresh') diff --git a/plugin/syntastic/loclist.vim b/plugin/syntastic/loclist.vim index cca6d0b3..48f44ba2 100644 --- a/plugin/syntastic/loclist.vim +++ b/plugin/syntastic/loclist.vim @@ -306,7 +306,7 @@ function! g:SyntasticLoclist.show() abort " {{{2 let num = winnr() execute 'lopen ' . syntastic#util#var('loc_list_height') if num != winnr() - wincmd p + execute num . 'wincmd w' endif " try to find the loclist window and set w:quickfix_title