patch 9.1.1448: tabpanel is not displayed correctly when msg_scrolled

Problem:  tabpanel is not displayed correctly when msg_scrolled
Solution: remove the msg_scrolled condition (Hirohito Higashi)

fixes: #17502
closes: #17510

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-06-10 20:19:04 +02:00
committed by Christian Brabandt
parent 91782b4aeb
commit 3ca6776a57
5 changed files with 43 additions and 3 deletions

View File

@ -120,9 +120,6 @@ tabpanelopt_changed(void)
int int
tabpanel_width(void) tabpanel_width(void)
{ {
if (msg_scrolled != 0)
return 0;
switch (p_stpl) switch (p_stpl)
{ {
case 0: case 0:

View File

@ -0,0 +1,10 @@
|[+2&#ffffff0|N|o| |N|a|m|e|]| @11|[|N|o| |N|a|m|e|]| | +8#0000001#e0e0e08|+| |N|o| |N|a|m|e|]| | +1#0000000#ffffff0|X+8#0000001#e0e0e08
|+| |[|N|o| |N|a|m|e|]| @8> +0#0000000#ffffff0@24
| +1&&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +0#0000000&@44

View File

@ -0,0 +1,10 @@
|[+8#0000001#e0e0e08|N|o| |N|a|m|e|]| @11|[|N|o| |N|a|m|e|]| | +2#0000000#ffffff0|+| |N|o| |N|a|m|e|]| | +1&&|X+8#0000001#e0e0e08
|++2#0000000#ffffff0| |[|N|o| |N|a|m|e|]| @8> +0&&@24
| +1&&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +1#0000000&@19|~+0#4040ff13&| @23
| +0#0000000&@44

View File

@ -653,4 +653,25 @@ function Test_tabpanel_error()
set tabpanel&vim set tabpanel&vim
set showtabpanel&vim set showtabpanel&vim
endfunc endfunc
function Test_tabpanel_with_msg_scrolled()
CheckScreendump
let lines =<< trim END
set showtabpanel=2
set noruler
tabnew
set modified
tabfirst
END
call writefile(lines, 'XTest_tabpanel_with_msg_scrolled', 'D')
let buf = RunVimInTerminal('-S XTest_tabpanel_with_msg_scrolled', {'rows': 10, 'cols': 45})
call VerifyScreenDump(buf, 'Test_tabpanel_with_msg_scrolled_0', {})
call term_sendkeys(buf, ":qa\<CR>")
call term_sendkeys(buf, "\<CR>")
call VerifyScreenDump(buf, 'Test_tabpanel_with_msg_scrolled_1', {})
call StopVimInTerminal(buf)
endfunc
" vim: shiftwidth=2 sts=2 expandtab " vim: shiftwidth=2 sts=2 expandtab

View File

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