Skip to content

Commit f1c115c

Browse files
committed
Merge pull request #25 from mutewinter/master
Fix E803 ID not found spam.
2 parents 287132d + 57b6da6 commit f1c115c

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)