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.c b/src/regexp.c
index a646728..c3bc496 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -2686,7 +2686,10 @@
bt_regcomp,
bt_regfree,
bt_regexec_nl,
- bt_regexec_multi,
+ bt_regexec_multi
+#ifdef DEBUG
+ ,(char_u *)""
+#endif
};
#include "regexp_nfa.c"
@@ -2696,7 +2699,10 @@
nfa_regcomp,
nfa_regfree,
nfa_regexec_nl,
- nfa_regexec_multi,
+ nfa_regexec_multi
+#ifdef DEBUG
+ ,(char_u *)""
+#endif
};
// Which regexp engine to use? Needed for vim_regcomp().