Skip to content

Commit

Permalink
IndentGuidesDisable: Clear IndentGuides{Even,Odd} matches
Browse files Browse the repository at this point in the history
  • Loading branch information
KSR-Yasuda committed Jun 27, 2022
1 parent 765084d commit d382307
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions autoload/indent_guides.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

"
Expand Down

0 comments on commit d382307

Please sign in to comment.