IndentGuidesDisable: Clear IndentGuides{Even,Odd} matches

This commit is contained in:
yasuda
2022-06-27 18:17:00 +09:00
parent 765084d38b
commit d382307613

View File

@@ -86,6 +86,13 @@ function! indent_guides#clear_matches()
let l:index += l:index let l:index += l:index
endfor endfor
endif 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 endfunction
" "