summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-25 16:51:50 +0100
committerw0rp <devw0rp@gmail.com>2016-10-25 16:51:50 +0100
commit454dbbe33e9d64ccddab20a38a00cbd215058513 (patch)
tree635daeabaae7b3651560f39663ea6ea86d5a0d21 /autoload
parentaa4c669ea00b8658150b5b15784e717b51762562 (diff)
parentd6a7b0f5186db0c686162806f71f3a7705630d01 (diff)
downloadale-454dbbe33e9d64ccddab20a38a00cbd215058513.zip
Merge remote-tracking branch 'origin/echo-less'
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/cursor.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim
index e9e678c6..ebac5ab0 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