summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/cursor.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim
index c83bbcb6..da3b6922 100644
--- a/autoload/ale/cursor.vim
+++ b/autoload/ale/cursor.vim
@@ -12,8 +12,10 @@ let s:cursor_timer = -1
" A wrapper for echon so we can test messages we echo in Vader tests.
function! ale#cursor#Echom(message) abort
- " no-custom-checks
- exec "norm! :echom a:message\n"
+ if mode() is# 'n'
+ " no-custom-checks
+ exec "norm! :echom a:message\n"
+ endif
endfunction
function! ale#cursor#TruncatedEcho(original_message) abort