Hi
This is quite minor, but there is a redundant 'if (len == 0)' condition
in regexp_nfa.c:6186. Either it can be removed as in attached patch,
or code was perhaps meant to do something else.
Regards
Dominique
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 43fe5dc..70003a0 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -6182,9 +6182,9 @@ nfa_regmatch(
if (rex.reg_icombine && len == 0)
{
/* If \Z was present, then ignore composing characters.
* When ignoring the base character this always matches. */
- if (len == 0 && sta->c != curc)
+ if (sta->c != curc)
result = FAIL;
else
result = OK;
while (sta->c != NFA_END_COMPOSING)