patch 9.1.0011: regexp cannot match combining chars in collection
Problem: regexp cannot match combining chars in collection
Solution: Check for combining characters in regex collections for the
NFA and BT Regex Engine
Also, while at it, make debug mode work again.
fixes #10286
closes: #12871
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/regexp.h b/src/regexp.h
index d6c8f48..1ff2e1b 100644
--- a/src/regexp.h
+++ b/src/regexp.h
@@ -178,7 +178,9 @@
int (*regexec_nl)(regmatch_T *, char_u *, colnr_T, int);
// bt_regexec_mult or nfa_regexec_mult
long (*regexec_multi)(regmmatch_T *, win_T *, buf_T *, linenr_T, colnr_T, int *);
- //char_u *expr;
+#ifdef DEBUG
+ char_u *expr;
+#endif
};
// Flags used by vim_regsub() and vim_regsub_both()