From c51fa7bc4666baad81356b298da7a5ede410f868 Mon Sep 17 00:00:00 2001 From: mathew Date: Wed, 23 Aug 2023 20:55:17 +0200 Subject: [PATCH] patch 9.0.1784: redundant else in pum_set_selected() Problem: redundant else in pum_set_selected() Solution: Remove it closes: #12893 Signed-off-by: Christian Brabandt Co-authored-by: mathew --- src/popupmenu.c | 11 ++++------- src/version.c | 2 ++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/popupmenu.c b/src/popupmenu.c index 651f510693..079fe81e8c 100644 --- a/src/popupmenu.c +++ b/src/popupmenu.c @@ -920,13 +920,10 @@ pum_set_selected(int n, int repeat UNUSED) ml_append(lnum++, p, 0, FALSE); break; } - else - { - *e = NUL; - ml_append(lnum++, p, (int)(e - p + 1), FALSE); - *e = '\n'; - p = e + 1; - } + *e = NUL; + ml_append(lnum++, p, (int)(e - p + 1), FALSE); + *e = '\n'; + p = e + 1; } // delete the empty last line ml_delete(curbuf->b_ml.ml_line_count); diff --git a/src/version.c b/src/version.c index d599067975..bcabd0b9c6 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1784, /**/ 1783, /**/