fix a minor issue when echoing the current error
Only clear the cmd window when it is displaying a message that we echoed. Previously we were echoing a blank line every time the cursor moved - this was clearing messages generated from other sources than syntastic.
This commit is contained in:
parent
e24bd80f44
commit
cafb55b3c8
@ -340,12 +340,16 @@ function! s:EchoCurrentError()
|
|||||||
let lnum = line(".")
|
let lnum = line(".")
|
||||||
for i in b:syntastic_loclist
|
for i in b:syntastic_loclist
|
||||||
if lnum == i['lnum']
|
if lnum == i['lnum']
|
||||||
|
let b:syntastic_echoing_error = 1
|
||||||
return s:WideMsg(i['text'])
|
return s:WideMsg(i['text'])
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
"Otherwise, clear the status line
|
"Otherwise, clear the status line
|
||||||
|
if exists("b:syntastic_echoing_error")
|
||||||
echo
|
echo
|
||||||
|
unlet b:syntastic_echoing_error
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"return a string representing the state of buffer according to
|
"return a string representing the state of buffer according to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user