mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
#1875 - Do not echo cursor messages when keys are pending
This commit is contained in:
@@ -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 New Issue
Block a user