# HG changeset patch # User Christian Brabandt # Date 1518127205 -3600 # Node ID e96663c35bab8de4aeb0e3d1280477c8e840c2d1 # Parent 469cb6f67dfeb92a168603f119c89a5f19050f39 patch 8.0.1478: unnecessary condition commit https://github.com/vim/vim/commit/dff72ba4459f54cac2ce40eea3d92097660c7b9f Author: Bram Moolenaar Date: Thu Feb 8 22:45:17 2018 +0100 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1478, +/**/ 1477, /**/ 1476,