patch 9.1.1451: tabpanel rendering artifacts when scrolling
Commit:
https://github.com/vim/vim/commit/30b4ddf925dabb42e02382db0403ddb0f7544cc2
Author: Hirohito Higashi <[email protected]>
Date: Tue Jun 10 20:42:06 2025 +0200
patch 9.1.1451: tabpanel rendering artifacts when scrolling
Problem: tabpanel rendering artifacts when scrolling
Solution: update scrolling logic (Hirohito Higashi)
fixes: #17495
closes: #17496
Signed-off-by: Hirohito Higashi <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/term.c b/src/term.c
index 649e483d6..6f7983bfb 100644
--- a/src/term.c
+++ b/src/term.c
@@ -4464,7 +4464,7 @@ scroll_region_set(win_T *wp, int off)
{
OUT_STR(tgoto((char *)T_CS, W_WINROW(wp) + wp->w_height - 1,
W_WINROW(wp) + off));
- if (*T_CSV != NUL && wp->w_width != topframe->fr_width)
+ if (*T_CSV != NUL && wp->w_width != Columns)
OUT_STR(tgoto((char *)T_CSV, wp->w_wincol + wp->w_width - 1,
wp->w_wincol));
screen_start(); // don't know where cursor is now
@@ -4478,9 +4478,7 @@ scroll_region_reset(void)
{
OUT_STR(tgoto((char *)T_CS, (int)Rows - 1, 0));
if (*T_CSV != NUL)
- OUT_STR(tgoto((char *)T_CSV,
- firstwin->w_wincol + topframe->fr_width - 1,
- firstwin->w_wincol));
+ OUT_STR(tgoto((char *)T_CSV, (int)Columns - 1, 0));
screen_start(); // don't know where cursor is now
}
diff --git a/src/version.c b/src/version.c
index 80b5f030a..da96e54a0 100644
--- a/src/version.c
+++ b/src/version.c
@@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1451,
/**/
1450,
/**/
diff --git a/src/window.c b/src/window.c
index bb116382a..f3b23e85a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6226,14 +6226,7 @@ shell_new_columns(void)
if (!skip_win_fix_scroll)
win_fix_scroll(TRUE);
-#ifdef FEAT_GUI
- if (gui.in_use && !gui.starting)
- {
- if (scroll_region)
- scroll_region_reset();
- scroll_start(); // may scroll the screen to the right position
- }
-#endif
+
redraw_tabline = TRUE;
#if defined(FEAT_TABPANEL)
redraw_tabpanel = TRUE;
--
--
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/E1uP4Ca-00BrCg-B8%40256bit.org.