0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.1478: unnecessary condition

Problem:    Unnecessary condition for "len" being zero.
Solution:   Remove the condition. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2018-02-08 22:45:17 +01:00
parent d317b38a4d
commit dff72ba445
2 changed files with 3 additions and 1 deletions

View File

@@ -6183,7 +6183,7 @@ nfa_regmatch(
{ {
/* If \Z was present, then ignore composing characters. /* If \Z was present, then ignore composing characters.
* When ignoring the base character this always matches. */ * When ignoring the base character this always matches. */
if (len == 0 && sta->c != curc) if (sta->c != curc)
result = FAIL; result = FAIL;
else else
result = OK; result = OK;

View File

@@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1478,
/**/ /**/
1477, 1477,
/**/ /**/