Skip to content

Commit

Permalink
Merge branch 'bugfix/GuideStyleClear'
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Feb 21, 2023
2 parents 549dcf0 + d382307 commit 36b2d8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions autoload/indent_guides.vim
Expand Up @@ -86,6 +86,13 @@ function! indent_guides#clear_matches() abort
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 36b2d8d

Please sign in to comment.