From d6a7b0f5186db0c686162806f71f3a7705630d01 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 24 Oct 2016 20:55:20 +0100 Subject: [PATCH] #119 - Stop ALE clearing the echo message when it doesn't need to. --- autoload/ale/cursor.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim index 7f49033..e6fd5a4 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