1
0
forked from aniani/vim

updated for version 7.3.1023

Problem:    Searching for composing char only and using \Z has different
            results.
Solution:   Make it match the composing char, matching everything is not
            useful.
This commit is contained in:
Bram Moolenaar
2013-05-26 15:14:55 +02:00
parent 7cd4d9c17c
commit 3451d66244
4 changed files with 25 additions and 5 deletions

View File

@@ -3294,7 +3294,7 @@ nfa_regmatch(start, submatch, m)
* (no preceding character). */
len += mb_char2len(mc);
}
if (ireg_icombine)
if (ireg_icombine && len == 0)
{
/* If \Z was present, then ignore composing characters.
* When ignoring the base character this always matches. */