Skip to content

Commit

Permalink
Don't echom if not in normal mode (#4560)
Browse files Browse the repository at this point in the history
  • Loading branch information
amadeus authored Jul 31, 2023
1 parent b216892 commit 1174b3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions autoload/ale/cursor.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1174b3b

Please sign in to comment.