patch 9.1.1465: tabpanel: not correctly drawn with 'equalalways'
Problem: tabpanel: not correctly drawn with 'equalalways'
Solution: call win_equal() (Hirohito Higashi)
closes: #17554
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 e05d469..3d2528f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6204,6 +6204,8 @@
if (firstwin == NULL) // not initialized yet
return;
+ int save_wincol = firstwin->w_wincol;
+ int save_fr_width = topframe->fr_width;
int w = COLUMNS_WITHOUT_TPL();
// First try setting the widths of windows with 'winfixwidth'. If that
@@ -6214,6 +6216,9 @@
win_comp_pos(); // recompute w_winrow and w_wincol
+ if (p_ea && (firstwin->w_wincol != save_wincol
+ || topframe->fr_width != save_fr_width))
+ win_equal(curwin, FALSE, 0);
if (!skip_win_fix_scroll)
win_fix_scroll(TRUE);