Skip to content

Commit

Permalink
patch 8.2.5144: with 'lazyredraw' set completion menu may be wrong
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
brammool committed Jun 21, 2022
1 parent 37bb3b1 commit c856ceb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/screen.c
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5144,
/**/
5143,
/**/
Expand Down

0 comments on commit c856ceb

Please sign in to comment.