changeset 13208:e96663c35bab v8.0.1478

patch 8.0.1478: unnecessary condition commit https://github.com/vim/vim/commit/dff72ba4459f54cac2ce40eea3d92097660c7b9f Author: Bram Moolenaar <Bram@vim.org> 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)
author Christian Brabandt <cb@256bit.org>
date Thu, 08 Feb 2018 23:00:05 +0100
parents 469cb6f67dfe
children f3e7d314d8d8
files src/regexp_nfa.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,