diff src/regexp_nfa.c @ 4551:f0c37f5cf4ea v7.3.1023

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.
author Bram Moolenaar <bram@vim.org>
date Sun, 26 May 2013 15:14:55 +0200
parents 849180347ac3
children 7b835b2969af
line wrap: on
line diff
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -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. */