]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1784: redundant else in pum_set_selected() v9.0.1784
authormathew <glephunter@gmail.com>
Wed, 23 Aug 2023 18:55:17 +0000 (20:55 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 23 Aug 2023 18:55:17 +0000 (20:55 +0200)
Problem:  redundant else in pum_set_selected()
Solution: Remove it

closes: #12893

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: mathew <glephunter@gmail.com>
src/popupmenu.c
src/version.c

index 651f51069399318645cf5c4e79868ebd32ea1d53..079fe81e8cc00739583572f61e1224d3f0d47a6c 100644 (file)
@@ -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);
index d599067975debc6f3f216490695348664bdfca9e..bcabd0b9c6a7b99ce01185679596ecd3933cbb6c 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1784,
 /**/
     1783,
 /**/