Skip to content

Commit c856ceb

Browse files
committed
patch 8.2.5144: with 'lazyredraw' set completion menu may be wrong
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)
1 parent 37bb3b1 commit c856ceb

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/screen.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3395,9 +3395,14 @@ win_ins_lines(
33953395
if (invalid)
33963396
wp->w_lines_valid = 0;
33973397

3398+
// with only a few lines it's not worth the effort
33983399
if (wp->w_height < 5)
33993400
return FAIL;
34003401

3402+
// with the popup menu visible this might not work correctly
3403+
if (pum_visible())
3404+
return FAIL;
3405+
34013406
if (line_count > wp->w_height - row)
34023407
line_count = wp->w_height - row;
34033408

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
5144,
737739
/**/
738740
5143,
739741
/**/

0 commit comments

Comments
 (0)