mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
fix(messages): don't set cmdline_row when messages have scrolled (#21015)
When 'cmdheight' is changed while messages have scrolled, the position of msg_grid is not moved up, so cmdline_row should not be set based on the position of msg_grid.
This commit is contained in:
@@ -196,7 +196,7 @@ void msg_grid_validate(void)
|
||||
msg_grid_set_pos(max_rows, false);
|
||||
}
|
||||
|
||||
if (msg_grid.chars && cmdline_row < msg_grid_pos) {
|
||||
if (msg_grid.chars && !msg_scrolled && cmdline_row < msg_grid_pos) {
|
||||
// TODO(bfredl): this should already be the case, but fails in some
|
||||
// "batched" executions where compute_cmdrow() use stale positions or
|
||||
// something.
|
||||
|
Reference in New Issue
Block a user