Fixes E803 ID not found spam
This commit is contained in:
parent
6854275667
commit
57b6da6d12
@ -70,7 +70,11 @@ function! indent_guides#clear_matches()
|
|||||||
if !empty(w:indent_guides_matches)
|
if !empty(w:indent_guides_matches)
|
||||||
let l:index = 0
|
let l:index = 0
|
||||||
for l:match_id in w:indent_guides_matches
|
for l:match_id in w:indent_guides_matches
|
||||||
|
try
|
||||||
call matchdelete(l:match_id)
|
call matchdelete(l:match_id)
|
||||||
|
catch /E803:/
|
||||||
|
" Do nothing
|
||||||
|
endtry
|
||||||
call remove(w:indent_guides_matches, l:index)
|
call remove(w:indent_guides_matches, l:index)
|
||||||
let l:index += l:index
|
let l:index += l:index
|
||||||
endfor
|
endfor
|
||||||
|
Loading…
Reference in New Issue
Block a user