]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1534: unnecessary code in tabpanel.c v9.1.1534
authorHirohito Higashi <h.east.727@gmail.com>
Thu, 10 Jul 2025 18:14:01 +0000 (20:14 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 10 Jul 2025 18:16:14 +0000 (20:16 +0200)
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>
src/tabpanel.c
src/version.c

index 77fe12f0f00b073da4f6270af8a95b3664259eb0..1fc3ca121775d73841fec325ec20a665aa8379fa 100644 (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;
 }
 
@@ -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;
 
index 560f9cfa838b3b0d0fab4541ee03ae361ff84ae8..7ccdbeb1f4a30650ac288564e744387451ae48ae 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1534,
 /**/
     1533,
 /**/