patch 9.1.1394: tabpanel not correctly redrawn on tabonly
Problem: tabpanel not correctly redrawn on tabonly
(Maxim Kim, after v9.1.1391)
Solution: force redraw of the tabpanel, tweak style
(Hirohito Higashi)
fixes: #17322
closes: #17330
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/window.c b/src/window.c
index c7fea12..8543758 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2086,7 +2086,7 @@
dir = *p_ead;
win_equal_rec(next_curwin == NULL ? curwin : next_curwin, current,
topframe, dir, 0, tabline_height(),
- (int)COLUMNS_WITHOUT_TPL(), topframe->fr_height);
+ (int)COLUMNS_WITHOUT_TPL(), topframe->fr_height);
if (!is_aucmd_win(next_curwin))
win_fix_scroll(TRUE);
}
@@ -3463,6 +3463,10 @@
redraw_tabline = TRUE;
if (h != tabline_height())
shell_new_rows();
+#if defined(FEAT_TABPANEL)
+ redraw_tabpanel = TRUE;
+#endif
+ shell_new_columns();
}
// Free the memory used for the window.