Merge pull request #25 from mutewinter/master

Fix E803 ID not found spam.
This commit is contained in:
Nate 2011-11-28 14:43:13 -08:00
commit f1c115ce5d

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