patch 9.1.1534: unnecessary code in tabpanel.c
Commit:
https://github.com/vim/vim/commit/bda2e4eb1638ecf357438a83741137ece7286175
Author: Hirohito Higashi <[email protected]>
Date: Thu Jul 10 20:14:01 2025 +0200
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/tabpanel.c b/src/tabpanel.c
index 77fe12f0f..1fc3ca121 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 560f9cfa8..7ccdbeb1f 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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uZw24-00FCS7-AD%40256bit.org.