summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-08-27 13:57:14 +0100
committerw0rp <devw0rp@gmail.com>2020-08-27 13:57:20 +0100
commit719f3c62b0e6a5500deaee456f71596f44d7e779 (patch)
treeb97fb73e538ecd7b0c5629bed67656994f97c01a
parent5d3d33626cfec083b7e5340df2186b6ed9610916 (diff)
downloadale-719f3c62b0e6a5500deaee456f71596f44d7e779.zip
#3266 - Catch echo visual selection errors
-rw-r--r--autoload/ale/cursor.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim
index 8c331c5c..9ca6fb15 100644
--- a/autoload/ale/cursor.vim
+++ b/autoload/ale/cursor.vim
@@ -39,6 +39,8 @@ function! ale#cursor#TruncatedEcho(original_message) abort
endif
exec 'echomsg l:message'
+ catch /E481/
+ " Do nothing if running from a visual selection.
endtry
" Reset the cursor position if we moved off the end of the line.