commit | dff72ba4459f54cac2ce40eea3d92097660c7b9f | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Feb 08 22:45:17 2018 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Feb 08 22:45:17 2018 +0100 |
tree | 3df0f47369fd1d1ce5cbf89a893619f3fc451683 | |
parent | d317b38a4dbcdbd4cf587cf78cc1f4289374214e [diff] [blame] |
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 43fe5dc..70003a0 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c
@@ -6183,7 +6183,7 @@ { /* 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;