mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
screen.c: fix redrawing tabline when messages overflow screen
This commit is contained in:
parent
11861bc9c8
commit
d545413492
@ -283,8 +283,11 @@ void update_screen(int type)
|
||||
if (msg_scrolled) {
|
||||
clear_cmdline = true;
|
||||
if (dy_flags & DY_MSGSEP) {
|
||||
int valid = MAX(Rows - msg_scrollsize(), 0);
|
||||
if (valid == 0) {
|
||||
redraw_tabline = true;
|
||||
}
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||
int valid = Rows - msg_scrollsize();
|
||||
if (wp->w_winrow + wp->w_height > valid) {
|
||||
wp->w_redr_type = NOT_VALID;
|
||||
wp->w_lines_valid = 0;
|
||||
@ -292,9 +295,6 @@ void update_screen(int type)
|
||||
if (wp->w_winrow + wp->w_height + wp->w_status_height > valid) {
|
||||
wp->w_redr_status = true;
|
||||
}
|
||||
if (valid == 0) {
|
||||
redraw_tabline = true;
|
||||
}
|
||||
}
|
||||
} else if (msg_scrolled > Rows - 5) { // clearing is faster
|
||||
type = CLEAR;
|
||||
|
Loading…
Reference in New Issue
Block a user