diff src/testdir/test_cmdline.vim @ 29489:7c639dff32dd v9.0.0086

patch 9.0.0086: tabline is not redrawn when entering command line Commit: https://github.com/vim/vim/commit/6791adca53981666f0cf23e264e102b795224044 Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Jul 26 20:42:25 2022 +0100 patch 9.0.0086: tabline is not redrawn when entering command line Problem: Tabline is not redrawn when entering command line. Solution: Set "redraw_tabline". (closes https://github.com/vim/vim/issues/10771)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Jul 2022 21:45:04 +0200
parents 5c390aa28f44
children 82b0aeaeaa3c
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -3173,4 +3173,20 @@ func Test_long_error_message()
   silent! norm Q00000000000000     000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000                                                                                                                                                                                                                        
 endfunc
 
+func Test_cmdline_redraw_tabline()
+  CheckRunVimInTerminal
+
+  let lines =<< trim END
+      set showtabline=2
+      autocmd CmdlineEnter * set tabline=foo
+  END
+  call writefile(lines, 'Xcmdline_redraw_tabline')
+  let buf = RunVimInTerminal('-S Xcmdline_redraw_tabline', #{rows: 6})
+  call term_sendkeys(buf, ':')
+  call WaitForAssert({-> assert_match('^foo', term_getline(buf, 1))})
+
+  call StopVimInTerminal(buf)
+  call delete('Xcmdline_redraw_tabline')
+endfunc
+
 " vim: shiftwidth=2 sts=2 expandtab