From bda2e4eb1638ecf357438a83741137ece7286175 Mon Sep 17 00:00:00 2001 From: Hirohito Higashi Date: Thu, 10 Jul 2025 20:14:01 +0200 Subject: [PATCH] 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 Signed-off-by: Christian Brabandt --- src/tabpanel.c | 43 +++++++------------------------------------ src/version.c | 2 ++ 2 files changed, 9 insertions(+), 36 deletions(-) diff --git a/src/tabpanel.c b/src/tabpanel.c index 77fe12f0f0..1fc3ca1217 100644 --- a/src/tabpanel.c +++ b/src/tabpanel.c @@ -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; } @@ -148,37 +139,17 @@ tabpanel_leftcol(void) void draw_tabpanel(void) { - int saved_KeyTyped = KeyTyped; - int saved_got_int = got_int; - 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; + int saved_KeyTyped = KeyTyped; + int saved_got_int = got_int; + int maxwidth = tabpanel_width(); + int vs_attr = HL_ATTR(HLF_C); + int curtab_row = 0; + 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; diff --git a/src/version.c b/src/version.c index 560f9cfa83..7ccdbeb1f4 100644 --- a/src/version.c +++ b/src/version.c @@ -719,6 +719,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1534, /**/ 1533, /**/