Bram Moolenaar wrote:
Guopeng Wen wrote:
I found that vim could highlight text incorrectly in
blockwise visual selection when the selection in performed
in "reversed" order. The problem can be replicated like
this:
1. Start vim without loading anything (follows Gary's instruction):
vim -N -u NONE -i NONE --cmd 'set go+=M'
2. Create a few lines (more than one lines).
3. 'G' to the last line.
4. Make a blockwise visual selection in "reversed" order.
That is, after <C-V>, start moving cursor backward and
upward with 'h'/'k'.
5. After the selection is made, start blockwise
insert/append using 'I' or 'A'.
Normally, the visual highlight should have been removed by
now. However, you'll find visual highlight will stay
after the above steps. The highlight won't be removed
even if you escape to normal mode. The blockwise
insert/append operation itself does function correctly.
I have verified this on following systems:
- Vim 7.0 (patch 1-168) on Windows XP
- Vim 7.0 (patch 1-168) on Solaris 8
- Vim 7.0 (patch 1-168) on Slackware 11.0
- Vim 7.0 (patch 1-122) on Debian testing
This should be a minor issue, there's no impact on functionality.
I'll make a patch for this.
Thank you very much for the quick fix! I've applied patch 169, the
highlight works as expected.
Regards!
--
Guopeng Wen