fix a bug with EchoCurrentError

due to an error in the logic, the echo window was being cleared after
every cursor movement instead of when moving the cursor off an error
This commit is contained in:
Martin Grenfell 2011-12-19 23:02:50 +00:00
parent 4f6ed48de5
commit a24bf027cc

View File

@ -389,9 +389,9 @@ function! s:EchoCurrentError()
endif
"Otherwise, clear the status line
if exists("b:syntastic_echoing_error")
if b:syntastic_echoing_error
echo
unlet b:syntastic_echoing_error
let b:syntastic_echoing_error = 0
endif
endfunction