Patch 9.0.0071
Problem: Command overlaps with printed text in scrollback.
Solution: Clear until end-of-line and use correct message chunk.
(closes #10765, closes #10764)
Files: src/message.c, src/testdir/test_messages.vim
*** ../vim-9.0.0070/src/message.c 2022-07-06 13:31:25.295370106 +0100
--- src/message.c 2022-07-25 19:47:23.315432093 +0100
***************
*** 2595,2600 ****
--- 2595,2601 ----
sb_text_end_cmdline(void)
{
do_clear_sb_text = SB_CLEAR_CMDLINE_DONE;
+ msg_sb_eol();
}
/*
***************
*** 2614,2620 ****
{
if (last_msgchunk == NULL)
return;
! lastp = &last_msgchunk->sb_prev;
}
while (*lastp != NULL)
--- 2615,2621 ----
{
if (last_msgchunk == NULL)
return;
! lastp = &msg_sb_start(last_msgchunk)->sb_prev;
}
while (*lastp != NULL)
*** ../vim-9.0.0070/src/testdir/test_messages.vim 2022-03-16
11:09:57.000000000 +0000
--- src/testdir/test_messages.vim 2022-07-25 19:47:23.315432093 +0100
***************
*** 233,239 ****
" Up all the way with 'g'.
call term_sendkeys(buf, 'g')
! call WaitForAssert({-> assert_equal(' 5 5', term_getline(buf, 5))})
call WaitForAssert({-> assert_equal('-- More --', term_getline(buf, 6))})
" All the way down. Pressing f should do nothing but pressing
--- 233,240 ----
" Up all the way with 'g'.
call term_sendkeys(buf, 'g')
! call WaitForAssert({-> assert_equal(' 4 4', term_getline(buf, 5))})
! call WaitForAssert({-> assert_equal(':%p#', term_getline(buf, 1))})
call WaitForAssert({-> assert_equal('-- More --', term_getline(buf, 6))})
" All the way down. Pressing f should do nothing but pressing
*** ../vim-9.0.0070/src/version.c 2022-07-25 19:41:58.713627693 +0100
--- src/version.c 2022-07-25 19:49:04.014894379 +0100
***************
*** 737,738 ****
--- 737,740 ----
{ /* Add new patch number below this line */
+ /**/
+ 71,
/**/
--
hundred-and-one symptoms of being an internet addict:
122. You ask if the Netaholics Anonymous t-shirt you ordered can be
sent to you via e-mail.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220725185122.1FD3A1C065D%40moolenaar.net.