mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
fix(messages): avoid crash with :intro and ch=0 (#28343)
This just copies code from msg_start() to wait_return(). Not sure if there is a better place to put such a block.
This commit is contained in:
@@ -1191,6 +1191,14 @@ void wait_return(int redraw)
|
||||
check_timestamps(false);
|
||||
}
|
||||
|
||||
// if cmdheight=0, we need to scroll in the first line of msg_grid upon the screen
|
||||
if (p_ch == 0 && !ui_has(kUIMessages) && !msg_scrolled) {
|
||||
msg_grid_validate();
|
||||
msg_scroll_up(false, true);
|
||||
msg_scrolled++;
|
||||
cmdline_row = Rows - 1;
|
||||
}
|
||||
|
||||
hit_return_msg(true);
|
||||
|
||||
do {
|
||||
|
Reference in New Issue
Block a user