diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-24 20:55:20 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-24 20:55:20 +0100 |
commit | d6a7b0f5186db0c686162806f71f3a7705630d01 (patch) | |
tree | 0bfd6ba3065d77febbe35bf27de15bc5c6622548 | |
parent | c546f47cc0c003053fb157b0ca2cced46b5429bc (diff) | |
download | ale-d6a7b0f5186db0c686162806f71f3a7705630d01.zip |
#119 - Stop ALE clearing the echo message when it doesn't need to.
-rw-r--r-- | autoload/ale/cursor.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim index 7f490339..e6fd5a4b 100644 --- a/autoload/ale/cursor.vim +++ b/autoload/ale/cursor.vim @@ -58,8 +58,14 @@ function! ale#cursor#EchoCursorWarning(...) abort let l:loc = l:loclist[l:index] let l:msg = s:GetMessage(l:loc.linter_name, l:loc.type, l:loc.text) call ale#cursor#TruncatedEcho(l:msg) + let g:ale_buffer_info[l:buffer].echoed = 1 else - echo + " We'll only clear the echoed message when moving off errors once, + " so we don't continually clear the echo line. + if get(g:ale_buffer_info[l:buffer], 'echoed') + echo + let g:ale_buffer_info[l:buffer].echoed = 0 + endif endif endfunction |