Markus Heidelberg, 03.03.2009:
>
> Hello,
>
> when searching for the EOL ($) and 'hlsearch' is set, it doesn't get
> properly highlighted, if the EOL is in the same column as the cursor is
> placed after the first match.
>
> To reproduce:
>
> vim -u NONE -U NONE -c "set hlsearch" -c "normal 3ix^Mxx^Mxxx^M^[/$^M"
>
> ^M = Ctrl-v<Enter>
> ^[ = Ctrl-v<Esc>
>
> and do /$<CR> several times to notice the problem
>
> git-bisect tracks it down to this:
>
> Patch 7.1.152
> Problem: Display problem when 'hls' and 'cursorcolumn' are set and
> searching for "$". (John Mullin) Also when scrolling
> horizontally when 'wrap' is off.
> Solution: Keep track of the column where highlighting was set. Check
> the
> column offset when skipping characters.
> Files: src/screen.c
Related to this, since it also doesn't occur without Patch 7.1.152:
vim -u NONE -U NONE -c "set hlsearch" -c "normal /$^M" -d misc1.c misc2.c
There in the changed and added lines 2 columns are highlighted as EOL
instead of merely 1.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---