#1875 - Do not echo cursor messages when keys are pending
This commit is contained in:
parent
c1f0956d9b
commit
a746ea2bfc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue