# HG changeset patch # User Christian Brabandt # Date 1692855792 -7200 # Node ID a506ab420306718123f6e862f71a1e23058886a0 # Parent 25d0060209cc235ea18b78a57698cb31802683a0 patch 9.0.1784: redundant else in pum_set_selected() Commit: https://github.com/vim/vim/commit/c51fa7bc4666baad81356b298da7a5ede410f868 Author: mathew Date: Wed Aug 23 20:55:17 2023 +0200 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 diff --git a/src/popupmenu.c b/src/popupmenu.c --- a/src/popupmenu.c +++ b/src/popupmenu.c @@ -920,13 +920,10 @@ pum_set_selected(int n, int repeat UNUSE 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 --- a/src/version.c +++ b/src/version.c @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1784, +/**/ 1785, /**/ 1786,