diff options
author | w0rp <devw0rp@gmail.com> | 2018-09-03 11:41:54 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-09-03 11:41:54 +0100 |
commit | a746ea2bfc1e01b9455d9efec3e95799be4177f2 (patch) | |
tree | cf18c57147458b0afca0fd4994340d8e46df84fb /autoload | |
parent | c1f0956d9b69dc68edaa7c41b4546efeed37bf88 (diff) | |
download | ale-a746ea2bfc1e01b9455d9efec3e95799be4177f2.zip |
#1875 - Do not echo cursor messages when keys are pending
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/cursor.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim index 73dbebb2..3fa4e5ba 100644 --- a/autoload/ale/cursor.vim +++ b/autoload/ale/cursor.vim @@ -61,7 +61,7 @@ function! ale#cursor#EchoCursorWarning(...) abort endif " Only echo the warnings in normal mode, otherwise we will get problems. - if mode() isnot# 'n' + if mode(1) isnot# 'n' return endif @@ -91,7 +91,7 @@ function! ale#cursor#EchoCursorWarningWithDelay() abort endif " Only echo the warnings in normal mode, otherwise we will get problems. - if mode() isnot# 'n' + if mode(1) isnot# 'n' return endif |