]> granicus.if.org Git - vim/commitdiff
patch 8.2.5144: with 'lazyredraw' set completion menu may be wrong v8.2.5144
authorBram Moolenaar <Bram@vim.org>
Tue, 21 Jun 2022 17:10:39 +0000 (18:10 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Jun 2022 17:10:39 +0000 (18:10 +0100)
Problem:    With 'lazyredraw' set completion menu may be displayed wrong.
Solution:   When the popup menu is visible do not insert a screen line.
            (closes #106010)

src/screen.c
src/version.c

index cba7e0b2ba3dfdd5f7371686317a06b3b457e1c9..a5b77e236c996f6bee5ab337a800fe94cbbb5728 100644 (file)
@@ -3395,9 +3395,14 @@ win_ins_lines(
     if (invalid)
        wp->w_lines_valid = 0;
 
+    // with only a few lines it's not worth the effort
     if (wp->w_height < 5)
        return FAIL;
 
+    // with the popup menu visible this might not work correctly
+    if (pum_visible())
+       return FAIL;
+
     if (line_count > wp->w_height - row)
        line_count = wp->w_height - row;
 
index 66129bd93eac1472cf66a5a89d04458bb19f13e1..9b2fd4e7a34c1b1b996c6b94375f4d9fd1b9b813 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5144,
 /**/
     5143,
 /**/