summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-12-18 11:14:10 +0000
committerw0rp <devw0rp@gmail.com>2017-12-18 11:14:10 +0000
commit8afd9a70a602a877f09f39ab34fbd1feb81ebc87 (patch)
tree1cc2031a28a765518e6495a541c082acd4476857 /autoload
parente4821c7f2f6f562368e13937876e1b109e912a74 (diff)
downloadale-8afd9a70a602a877f09f39ab34fbd1feb81ebc87.zip
#1212 Fix some echo cursor flashing by only echoing once all linters are finished.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/engine.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index 65e663aa..8441ad16 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -306,13 +306,13 @@ function! ale#engine#SetResults(buffer, loclist) abort
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
-
if l:linting_is_done
+ 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
+
" Reset the save event marker, used for opening windows, etc.
call setbufvar(a:buffer, 'ale_save_event_fired', 0)