Don't echom if not in normal mode (#4560)

This commit is contained in:
Amadeus Demarzi
2023-07-31 00:39:30 -07:00
committed by GitHub
parent b216892f0c
commit 1174b3b81e

View File

@@ -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