#1875 - Do not echo cursor messages when keys are pending

This commit is contained in:
w0rp 2018-09-03 11:41:54 +01:00
parent c1f0956d9b
commit a746ea2bfc
No known key found for this signature in database
GPG key ID: 0FC1ECAA8C81CD83

View file

@ -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