mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-10 02:43:46 -05:00
Merge pull request #25 from mutewinter/master
Fix E803 ID not found spam.
This commit is contained in:
@@ -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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user