summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-03-02 23:36:31 +0000
committerw0rp <devw0rp@gmail.com>2017-03-02 23:36:31 +0000
commit0e50a7d2783fb82ce4abf9ad6c58c5a035d9d047 (patch)
treed4fee4d76b362377e704ed4c810b78728b2fddef /autoload
parentfab9e8f5ea897a6a51c8a516b4b78c3f8c0bad46 (diff)
downloadale-0e50a7d2783fb82ce4abf9ad6c58c5a035d9d047.zip
Fix #373 - echo the cursor message after lint cycles or when leaving Insert mode
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/engine.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index bc834083..ffef76a9 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -268,6 +268,12 @@ function! ale#engine#SetResults(buffer, loclist) abort
if g:ale_set_highlights
call ale#highlight#SetHighlights(a:buffer, a:loclist)
endif
+
+ if g:ale_echo_cursor
+ " Try and echo the warning now.
+ " This will only do something meaningful if we're in normal mode.
+ call ale#cursor#EchoCursorWarning()
+ endif
endfunction
function! s:SetExitCode(job, exit_code) abort