Hirohito Higashi wrote:

> Preparation:
> - Prepare a file with the following contents.  (Six lines)
>   $ cat a.txt
> foo
> foo
> foo
> foo
> foo
> foo
> 
> How to reproduce:
> - Start vanilla Vim with hlsearch and incsearch
>   $ vim --clean +"set hls is" a.txt
> - Search the keyword under the cursor.  (All 'foo' are highlighted)
>   *
> - Do incsearch in :s command with range 2 to 5 lines.
>   :2,5s/foo
> - Cancel incseach.
>   Hit <Esc> key
> 
> Expected behavior:
> - All 'foo' are highlighted.
> 
> Actual behavior:
> - Only 2 to 5 lines are highlighted.
> 
> 
> Patch attached.
> Please check it out.
> 
> NOTE:
> This issue was reported by Masamichi Abe.
> And he wrote a first patch.
> I fixed a bit patch and added test.
> 
> This patch reviewed by Ozaki Kiichi (ichizok).  Thanks!

Thanks.  The test at first didn't fail (without the patch).
I added a delay before sending the Esc, then it failed successfully.

-- 
A)bort, R)etry, B)ang it with a large hammer

 /// 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