mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
vim-patch:9.0.0071: command overlaps with printed text in scrollback (#19505)
Problem: Command overlaps with printed text in scrollback. Solution: Clear until end-of-line and use correct message chunk. (closes vim/vim#10765, closes vim/vim#10764)ecdc82e74e
N/A patches for version.c: vim-patch:9.0.0070: using utfc_ptr2char_len() when length is negative Problem: Using utfc_ptr2char_len() when length is negative. Solution: Check value of length. (closes vim/vim#10760)4dc513a22c
This commit is contained in:
@@ -2548,6 +2548,7 @@ void sb_text_start_cmdline(void)
|
||||
void sb_text_end_cmdline(void)
|
||||
{
|
||||
do_clear_sb_text = SB_CLEAR_CMDLINE_DONE;
|
||||
msg_sb_eol();
|
||||
}
|
||||
|
||||
/// Clear any text remembered for scrolling back.
|
||||
@@ -2564,7 +2565,7 @@ void clear_sb_text(int all)
|
||||
if (last_msgchunk == NULL) {
|
||||
return;
|
||||
}
|
||||
lastp = &last_msgchunk->sb_prev;
|
||||
lastp = &msg_sb_start(last_msgchunk)->sb_prev;
|
||||
}
|
||||
|
||||
while (*lastp != NULL) {
|
||||
|
Reference in New Issue
Block a user