Skip to content

Commit

Permalink
fix: cmdheight problems part3
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 30, 2022
1 parent 7f20d61 commit 1baf9d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/nvim/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -2373,7 +2373,7 @@ bool msg_use_msgsep(void)
{
// the full-screen scroll behavior doesn't really make sense with
// 'ext_multigrid'
return ((dy_flags & DY_MSGSEP) || ui_has(kUIMultigrid));
return (dy_flags & DY_MSGSEP) || ui_has(kUIMultigrid);
}

bool msg_do_throttle(void)
Expand Down
6 changes: 0 additions & 6 deletions src/nvim/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -6415,12 +6415,6 @@ void command_height(void)
// p_ch was changed in another tab page.
curtab->tp_ch_used = p_ch;

// If the space for the command line is already more than 'cmdheight' there
// is nothing to do (window size must have decreased).
if (p_ch > old_p_ch && cmdline_row <= Rows - p_ch) {
return;
}

// If cmdline_row is smaller than what it is supposed to be for 'cmdheight'
// then set old_p_ch to what it would be, so that the windows get resized
// properly for the new value.
Expand Down

0 comments on commit 1baf9d0

Please sign in to comment.