From a746ea2bfc1e01b9455d9efec3e95799be4177f2 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 3 Sep 2018 11:41:54 +0100 Subject: #1875 - Do not echo cursor messages when keys are pending --- autoload/ale/cursor.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload') 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 -- cgit v1.2.3