Tony wrote:

> Currently with 'incsearch' and 'hlsearch' both on, when searching for
> a pattern including \Z (i.e. disregard composing characters) with (if
> it makes a difference) the old search engine (i.e. 'regexpengine' set
> to 1) this is what I observe:
> - 'hlsearch' highlighting is correct (in gvim with default
> highlighting: black on yellow)
> - the cursor is correctly positioned on the (round-robin if 'wrapscan'
> is set) first matching string in the indicated / or ? direction
> - but, if that first matching string has a composing character on its
> last character, that last character is not covered by 'incsearch'
> highlighting (in gvim with default highlighting: white on black i.e.
> reverse-video).
> 
> Example (with no colorscheme set or after ":colorscheme default" to
> reset it) (BTW, 'encoding' is "utf-8" without the quotes):
>     /\Zabc
> (don't yet hit <Enter> or <Esc>)
> 
> Actual result: if the first "abc" string in the search direction has a
> composing character on its c, its ab part will be in reverse-video and
> the c (with composing character) will be in black on yellow.
> Expected result: I would have expected the first "abc" string to be
> wholly in reverse-video (regardless of any composing characters).
> 
> N.B.
> 1. Presence or absence of additional composing characters on the a and
> b may make a difference: a composing character there makes the problem
> less repeatable (it doesn't wholly disappear but it becomes erratic).
> 2. Any _other_ "abc" in sight (with or without composing characters)
> is fully in black on yellow, which is correct.

I can reproduce it, but only when 'regexpengine' is set to 1.  With the
new engine it's OK.

-- 
Sorry, no fortune today.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui