Am 08.08.2012 15:40, schrieb Bram Moolenaar:

Patch 7.3.625
Problem:    "gn" does not handle zero-width matches correctly.
Solution:   Handle zero-width patterns specially. (Christian Brabandt)
Files:      src/search.c

Note that this doesn't fix everything yet.  E.g. "/two\zs" may delete
one character or the text between two matches, if there are two in one
line.

One more issue:

Some pattern e.g. /\<t\w\+

When
Visual mode is on (charwise)
and the cursor is at the end of the selection
and the selection ends within the *first* pattern match in the buffer
Then
    gn
selects up to the end of the *next* match (2nd match in the buffer);
beeps when there is no 2nd match (should select up to the end of the
current match).

Works ok when on the 2nd match (and later matches).


Rechecking with a minimal config (-N -u NONE -i NONE)
I noticed one more issue
    gn
(error, no previous regular expression)
Then,
    /t\w\+
(= some pattern) finds text, but
    gn
still beeps.

(my version is gVim 7.3.636)

--
Andy

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

Raspunde prin e-mail lui