From: Bram Moolenaar Date: Thu, 8 Feb 2018 21:45:17 +0000 (+0100) Subject: patch 8.0.1478: unnecessary condition X-Git-Tag: v8.0.1478 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dff72ba4459f54cac2ce40eea3d92097660c7b9f;p=vim patch 8.0.1478: unnecessary condition Problem: Unnecessary condition for "len" being zero. Solution: Remove the condition. (Dominique Pelle) --- diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 43fe5dc4d..70003a05b 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -6183,7 +6183,7 @@ nfa_regmatch( { /* 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; diff --git a/src/version.c b/src/version.c index ce9b89ccf..6f0f78f0d 100644 --- a/src/version.c +++ b/src/version.c @@ -771,6 +771,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1478, /**/ 1477, /**/