From a24bf027cc8b4d5ca99a50a54bc0af912408f728 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Mon, 19 Dec 2011 23:02:50 +0000 Subject: [PATCH] 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 --- plugin/syntastic.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 4385557d..5a7a578c 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -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