patch 9.1.1534: unnecessary code in tabpanel.c

Problem:  unnecessary code in tabpanel.c
Solution: remove it (Hirohito Higashi)

closes: #17713

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Hirohito Higashi
2025-07-10 20:14:01 +02:00
committed by Christian Brabandt
parent 6715b3510e
commit bda2e4eb16
2 changed files with 9 additions and 36 deletions

View File

@ -59,7 +59,6 @@ tabpanelopt_changed(void)
int new_align = ALIGN_LEFT;
int new_columns = 20;
int new_is_vert = FALSE;
int do_equal = 0;
p = p_tplo;
while (*p != NUL)
@ -97,19 +96,11 @@ tabpanelopt_changed(void)
++p;
}
// Whether all the windows are automatically made the same size
// when tabpanel size is changed.
do_equal = p_ea && tpl_columns != new_columns;
tpl_align = new_align;
tpl_columns = new_columns;
tpl_is_vert = new_is_vert;
shell_new_columns();
if (do_equal)
win_equal(curwin, FALSE, 0);
return OK;
}
@ -153,32 +144,12 @@ draw_tabpanel(void)
int maxwidth = tabpanel_width();
int vs_attr = HL_ATTR(HLF_C);
int curtab_row = 0;
#ifndef MSWIN
int row = 0;
int off = 0;
#endif
int vsrow = 0;
int is_right = tpl_align == ALIGN_RIGHT;
if (maxwidth == 0)
return;
#ifndef MSWIN
// We need this section only for the Vim running on WSL.
for (row = 0; row < cmdline_row; row++)
{
if (is_right)
off = LineOffset[row] + Columns - maxwidth;
else
off = LineOffset[row];
vim_memset(ScreenLines + off, ' ', (size_t)maxwidth * sizeof(schar_T));
if (enc_utf8)
vim_memset(ScreenLinesUC + off, -1,
(size_t)maxwidth * sizeof(u8char_T));
}
#endif
// Reset got_int to avoid build_stl_str_hl() isn't evaluted.
got_int = FALSE;

View File

@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1534,
/**/
1533,
/**/