summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-09-11 16:49:25 +0100
committerw0rp <devw0rp@gmail.com>2019-09-11 16:49:25 +0100
commitcda46636f475d6571fba2c3e4f01ff5541d2ef7a (patch)
tree60e420413bf4a9d0acb0457cf456947b1ac24eb4 /autoload
parent2e323b529d8a4938f2077f31b937bc47c6c180bc (diff)
downloadale-cda46636f475d6571fba2c3e4f01ff5541d2ef7a.zip
Fix #2760 - Ignore all errors for adding NeoVim highlights
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/highlight.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/autoload/ale/highlight.vim b/autoload/ale/highlight.vim
index 20ef19dd..82ad57e0 100644
--- a/autoload/ale/highlight.vim
+++ b/autoload/ale/highlight.vim
@@ -34,7 +34,11 @@ endif
" Wrappers are necessary to test this functionality by faking the calls in tests.
function! ale#highlight#nvim_buf_add_highlight(buffer, ns_id, hl_group, line, col_start, col_end) abort
- call nvim_buf_add_highlight(a:buffer, a:ns_id, a:hl_group, a:line, a:col_start, a:col_end)
+ " Ignore all errors for adding highlights.
+ try
+ call nvim_buf_add_highlight(a:buffer, a:ns_id, a:hl_group, a:line, a:col_start, a:col_end)
+ catch
+ endtry
endfunction
function! ale#highlight#nvim_buf_clear_namespace(buffer, ns_id, line_start, line_end) abort