From 34241edcdbc562f074988ba54b970a6ecf8dd4d9 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 9 Oct 2016 12:50:45 +0100 Subject: [PATCH] Fix a bug where echoing in modes like visual select caused some errors. --- plugin/ale/cursor.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/ale/cursor.vim b/plugin/ale/cursor.vim index 1fc0d70..e0751a8 100644 --- a/plugin/ale/cursor.vim +++ b/plugin/ale/cursor.vim @@ -63,6 +63,11 @@ function! ale#cursor#TruncatedEcho(message) endfunction function! ale#cursor#EchoCursorWarning(...) + " Only echo the warnings in normal mode, otherwise we will get problems. + if mode() !=# 'n' + return + endif + let buffer = bufnr('%') if !has_key(g:ale_buffer_loclist_map, buffer)