diff options
author | Amadeus Demarzi <amadeus@users.noreply.github.com> | 2023-07-31 00:39:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-31 08:39:30 +0100 |
commit | 1174b3b81ef6d376401e46b490448d619fac9335 (patch) | |
tree | 03bb07a681732e0ec54ad2d0451abdb213ef6c72 | |
parent | b216892f0c1ce7bbe9efeeb6cf55b52a473f49c2 (diff) | |
download | ale-1174b3b81ef6d376401e46b490448d619fac9335.zip |
Don't echom if not in normal mode (#4560)
-rw-r--r-- | autoload/ale/cursor.vim | 6 |
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 |