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

Another related issue, where this patch changes behaviour:

    vim  -c "normal 2l^V2j2l" screen.c

Now toggle start/end of the visual block selection with 'o' and you can
see that the highlighting of the EOL in the line in the middle gets
toggled.

This char is highlighted by the visual block if the visual selection
starts at the same column and the cursor is further to the right.

After reverting the patch, the EOL char is also highlighted, if the
cursor is below the start of the visual block.

I think the EOL should never be highlighted, as it's done, if the cursor
is further to the left than the start of the visual block.

Markus


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui