summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index a3a407c4..e69aba18 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -166,6 +166,10 @@ function! s:ALEInitAuGroups() abort
autocmd!
if g:ale_enabled && g:ale_echo_cursor
autocmd CursorMoved,CursorHold * call ale#cursor#EchoCursorWarningWithDelay()
+ " Look for a warning to echo as soon as we leave Insert mode.
+ " The script's position variable used when moving the cursor will
+ " not be changed here.
+ autocmd InsertLeave * call ale#cursor#EchoCursorWarning()
endif
augroup END