diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-26 20:42:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-26 20:42:25 +0100 |
commit | 6791adca53981666f0cf23e264e102b795224044 (patch) | |
tree | 1aafabe817adbd4735d0ea012c68b0157b97d010 /src | |
parent | 1f0dc5e84f5cc530c0fb9d0789e3d42d644429d7 (diff) |
patch 9.0.0086: tabline is not redrawn when entering command linev9.0.0086
Problem: Tabline is not redrawn when entering command line.
Solution: Set "redraw_tabline". (closes #10771)
Diffstat (limited to 'src')
-rw-r--r-- | src/ex_getln.c | 7 | ||||
-rw-r--r-- | src/testdir/test_cmdline.vim | 16 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 25 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 3c984ff2a3..a5196fcf6b 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1758,6 +1758,13 @@ getcmdline_int( wp->w_redr_status = TRUE; found_one = TRUE; } + + if (*p_tal != NUL) + { + redraw_tabline = TRUE; + found_one = TRUE; + } + if (found_one) redraw_statuslines(); } diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 1994a8ca70..e1ee6336d3 100644 --- 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 diff --git a/src/version.c b/src/version.c index a0caf3e9c3..ead1e1541b 100644 --- a/src/version.c +++ b/src/version.c @@ -736,6 +736,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 86, +/**/ 85, /**/ 84, |