alvan/vim-closetag

Overrides previous search highlighting

Kody-Quintana opened this issue · 0 comments

When search highlighting is enabled and a search has been done, closing a tag changes the highlighted search to > instead of the previous search.
I'm not too savvy with vimscript but I fixed this by putting let old_search = @/ at the beginning of fun! s:CloseIt() and then putting let @/ = old_search right before any retu in that function, if this isn't too naive of a fix I can submit a PR