patch 9.0.1784: redundant else in pum_set_selected()
Commit:
https://github.com/vim/vim/commit/c51fa7bc4666baad81356b298da7a5ede410f868
Author: mathew <
gleph...@gmail.com>
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 <
c...@256bit.org>
Co-authored-by: mathew <
gleph...@gmail.com>
diff --git a/src/popupmenu.c b/src/popupmenu.c
index 651f51069..079fe81e8 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 = '
';
- p = e + 1;
- }
+ *e = NUL;
+ ml_append(lnum++, p, (int)(e - p + 1), FALSE);
+ *e = '
';
+ 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 d59906797..bcabd0b9c 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,
/**/