After closing a narrow region buffer the original section is strangely selected.
Serabe opened this issue · 4 comments
After selecting a part of my code (starting on line 270), editing the narrow region and closing it, it gets somehow higlighted.
In the image, usual text looks like the top part, normal visual selection looks like the selection up to line 268 and a narrow region closed looks like the rest of the code.
That is a problem, that has come up every now and then. I tried to fix it in the past several times, but it seems to reappear. As a start, can you give me the commands to start and end the narrowed window?
As a workaround you can remove the highlighting manually by using :call clearmatches()
I start it with :nr
and a visual selection and close it with :wq
should be fixed now. Please test
Works so far. Thank you!