patch 9.0.1784: redundant else in pum_set_selected()

Commit: 
https://github.com/vim/vim/commit/c51fa7bc4666baad81356b298da7a5ede410f868
Author: mathew <glephun...@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 <glephun...@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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qZ37g-00Fw2I-MT%40256bit.org.

Raspunde prin e-mail lui