Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 60578c3

Browse files
committed
Bug fix: g:syntastic_auto_jump should jump on checks, not on writes.
1 parent ba0f349 commit 60578c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

plugin/syntastic.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ function! s:UpdateErrors(auto_invoked, ...)
129129
return
130130
endif
131131

132-
if !a:auto_invoked || s:modemap.allowsAutoChecking(&filetype)
132+
let run_checks = !a:auto_invoked || s:modemap.allowsAutoChecking(&filetype)
133+
if run_checks
133134
if a:0 >= 1
134135
call s:CacheErrors(a:1)
135136
else
@@ -141,7 +142,7 @@ function! s:UpdateErrors(auto_invoked, ...)
141142

142143
if g:syntastic_always_populate_loc_list || g:syntastic_auto_jump
143144
call setloclist(0, loclist.filteredRaw())
144-
if g:syntastic_auto_jump && loclist.hasErrorsOrWarningsToDisplay()
145+
if run_checks && g:syntastic_auto_jump && loclist.hasErrorsOrWarningsToDisplay()
145146
silent! lrewind
146147
endif
147148
endif

0 commit comments

Comments
 (0)