mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-10 02:43:46 -05:00
IndentGuidesDisable: Clear IndentGuides{Even,Odd} matches
This commit is contained in:
@@ -86,6 +86,13 @@ function! indent_guides#clear_matches()
|
||||
let l:index += l:index
|
||||
endfor
|
||||
endif
|
||||
|
||||
" Make sure to clear indent guide if remembered match id has gone somehow.
|
||||
for l:match in getmatches()
|
||||
if l:match.group =~# '^IndentGuides\v(Even|Odd)$'
|
||||
call matchdelete(l:match.id)
|
||||
endif
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user