Fixes E803 ID not found spam

This commit is contained in:
Jeremy Mack 2011-09-28 21:19:41 -03:00
parent 6854275667
commit 57b6da6d12

View File

@ -70,7 +70,11 @@ function! indent_guides#clear_matches()
if !empty(w:indent_guides_matches)
let l:index = 0
for l:match_id in w:indent_guides_matches
call matchdelete(l:match_id)
try
call matchdelete(l:match_id)
catch /E803:/
" Do nothing
endtry
call remove(w:indent_guides_matches, l:index)
let l:index += l:index
endfor