Patch 9.0.0071

3 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 25, 2022, 2:51:34 PM7/25/22
to vim...@googlegroups.com

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 -- 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