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>
diff --git a/src/testdir/test_tabpanel.vim b/src/testdir/test_tabpanel.vim
index 0d729a8..959734f 100644
--- a/src/testdir/test_tabpanel.vim
+++ b/src/testdir/test_tabpanel.vim
@@ -653,4 +653,25 @@
set tabpanel&vim
set showtabpanel&vim
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