Skip to content

Commit 57b6da6

Browse files
author
Jeremy Mack
committed
Fixes E803 ID not found spam
1 parent 6854275 commit 57b6da6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

autoload/indent_guides.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ function! indent_guides#clear_matches()
7070
if !empty(w:indent_guides_matches)
7171
let l:index = 0
7272
for l:match_id in w:indent_guides_matches
73-
call matchdelete(l:match_id)
73+
try
74+
call matchdelete(l:match_id)
75+
catch /E803:/
76+
" Do nothing
77+
endtry
7478
call remove(w:indent_guides_matches, l:index)
7579
let l:index += l:index
7680
endfor

0 commit comments

Comments
 (0)