]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1449: typo in pum_display() v9.1.1449
authorglepnir <glephunter@gmail.com>
Tue, 10 Jun 2025 18:23:42 +0000 (20:23 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 10 Jun 2025 18:23:42 +0000 (20:23 +0200)
Problem:  typo in pum_display()
Solution: update the comment, remove empty new lines
          (glepnir)

closes: #17506

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

index fb32017f3805be163f66b37ea19b6a6e4127efc8..eecddc5be60cd26a1540198dd5af112e652be9c0 100644 (file)
@@ -165,7 +165,6 @@ pum_display(
                      && pum_win_row - above_row > (below_row - above_row) / 2)
        {
            // pum above "pum_win_row"
-
            if (State == MODE_CMDLINE)
                // for cmdline pum, no need for context lines
                context_lines = 0;
@@ -192,13 +191,12 @@ pum_display(
        else
        {
            // pum below "pum_win_row"
-
            if (State == MODE_CMDLINE)
                // for cmdline pum, no need for context lines
                context_lines = 0;
            else
            {
-               // Leave two lines of context if possible
+               // Leave three lines of context if possible
                validate_cheight();
                cline_visible_offset = curwin->w_cline_row +
                                    curwin->w_cline_height - curwin->w_wrow;
index 44ec23153e206bb64c31fef99c2d621d0afa514d..3983083b482bfcfbaebfa1cf87556c09e62b4e36 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1449,
 /**/
     1448,
 /**/