forked from aniani/vim
patch 9.0.0071: command overlaps with printed text in scrollback
Problem: Command overlaps with printed text in scrollback. Solution: Clear until end-of-line and use correct message chunk. (closes #10765, closes #10764)
This commit is contained in:
parent
4dc513a22c
commit
ecdc82e74e
@ -2595,6 +2595,7 @@ sb_text_start_cmdline(void)
|
|||||||
sb_text_end_cmdline(void)
|
sb_text_end_cmdline(void)
|
||||||
{
|
{
|
||||||
do_clear_sb_text = SB_CLEAR_CMDLINE_DONE;
|
do_clear_sb_text = SB_CLEAR_CMDLINE_DONE;
|
||||||
|
msg_sb_eol();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2614,7 +2615,7 @@ clear_sb_text(int all)
|
|||||||
{
|
{
|
||||||
if (last_msgchunk == NULL)
|
if (last_msgchunk == NULL)
|
||||||
return;
|
return;
|
||||||
lastp = &last_msgchunk->sb_prev;
|
lastp = &msg_sb_start(last_msgchunk)->sb_prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (*lastp != NULL)
|
while (*lastp != NULL)
|
||||||
|
@ -233,7 +233,8 @@ func Test_message_more()
|
|||||||
|
|
||||||
" Up all the way with 'g'.
|
" Up all the way with 'g'.
|
||||||
call term_sendkeys(buf, 'g')
|
call term_sendkeys(buf, 'g')
|
||||||
call WaitForAssert({-> assert_equal(' 5 5', term_getline(buf, 5))})
|
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))})
|
call WaitForAssert({-> assert_equal('-- More --', term_getline(buf, 6))})
|
||||||
|
|
||||||
" All the way down. Pressing f should do nothing but pressing
|
" All the way down. Pressing f should do nothing but pressing
|
||||||
|
@ -735,6 +735,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
71,
|
||||||
/**/
|
/**/
|
||||||
70,
|
70,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user