vim-patch:8.1.0700: using "gt" sometimes does not redraw a tab (#9464)

Problem:    Using "gt" sometimes does not redraw a tab. (Jason Franklin)
Solution:   Always set must_redraw in redraw_all_later().
04b4e1a424

ref bf3250a8ad (r31852304)

> I fixed it in a more general way, in that if we don't find a window
> that doesn't have the redraw type set it, then it will not set
> must_redraw, even though that's clearly intended.

ref #9152
ref #9155

NA patches:
vim-patch:8.1.0698
vim-patch:8.1.0699
This commit is contained in:
Justin M. Keyes 2019-01-07 22:33:57 +01:00 committed by GitHub
parent 3081f60989
commit 0ccb9704d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -185,6 +185,10 @@ void redraw_all_later(int type)
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
redraw_win_later(wp, type);
}
// This may be needed when switching tabs.
if (must_redraw < type) {
must_redraw = type;
}
}
void screen_invalidate_highlights(void)

View File

@ -3355,7 +3355,6 @@ static void enter_tabpage(tabpage_T *tp, buf_T *old_curbuf, int trigger_enter_au
}
redraw_all_later(NOT_VALID);
must_redraw = NOT_VALID;
}
/// called when changing current tabpage from old_curtab to curtab