summaryrefslogtreecommitdiff
path: root/autoload/ale/engine.vim
diff options
context:
space:
mode:
authorLuan Santos <cfcluan@gmail.com>2018-11-06 22:31:35 -0800
committerLuan Santos <cfcluan@gmail.com>2018-11-06 22:31:35 -0800
commitf58a5cba0583231f77bd5e7cd5ab7a246fb00cd1 (patch)
tree0b8d655d3cf9075e63a421f5ac7db0012185d150 /autoload/ale/engine.vim
parent25068de91d1ff61cba02da4ad19f45d35c634eb9 (diff)
downloadale-f58a5cba0583231f77bd5e7cd5ab7a246fb00cd1.zip
Move virtualtext handling to own file
This allows cursor and virtualtext to be independently autoloaded.
Diffstat (limited to 'autoload/ale/engine.vim')
-rw-r--r--autoload/ale/engine.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index f49d607b..b44be73c 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -298,12 +298,18 @@ function! ale#engine#SetResults(buffer, loclist) abort
endif
if l:linting_is_done
- if g:ale_echo_cursor || g:ale_virtualtext_cursor
+ 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 g:ale_virtualtext_cursor
+ " Try and show the warning now.
+ " This will only do something meaningful if we're in normal mode.
+ call ale#virtualtext#ShowCursorWarning()
+ endif
+
" Reset the save event marker, used for opening windows, etc.
call setbufvar(a:buffer, 'ale_save_event_fired', 0)
" Set a marker showing how many times a buffer has been checked.