Patch 9.0.0086

3 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 26, 2022, 3:43:08 PM7/26/22
to vim...@googlegroups.com

Patch 9.0.0086
Problem: Tabline is not redrawn when entering command line.
Solution: Set "redraw_tabline". (closes #10771)
Files: src/ex_getln.c, src/testdir/test_cmdline.vim


*** ../vim-9.0.0085/src/ex_getln.c 2022-07-26 18:12:35.090727070 +0100
--- src/ex_getln.c 2022-07-26 20:39:15.866917288 +0100
***************
*** 1758,1763 ****
--- 1758,1770 ----
wp->w_redr_status = TRUE;
found_one = TRUE;
}
+
+ if (*p_tal != NUL)
+ {
+ redraw_tabline = TRUE;
+ found_one = TRUE;
+ }
+
if (found_one)
redraw_statuslines();
}
*** ../vim-9.0.0085/src/testdir/test_cmdline.vim 2022-07-26 17:23:35.809981769 +0100
--- src/testdir/test_cmdline.vim 2022-07-26 20:39:15.866917288 +0100
***************
*** 3173,3176 ****
--- 3173,3192 ----
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
*** ../vim-9.0.0085/src/version.c 2022-07-26 19:44:52.916896633 +0100
--- src/version.c 2022-07-26 20:40:29.958729915 +0100
***************
*** 737,738 ****
--- 737,740 ----
{ /* Add new patch number below this line */
+ /**/
+ 86,
/**/

--
hundred-and-one symptoms of being an internet addict:
141. You'd rather go to http://www.weather.com/ than look out your window.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages