diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-25 19:50:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-25 19:50:57 +0100 |
commit | ecdc82e74e6a7e73d9067ece1d5eac33abfde5ed (patch) | |
tree | 7db7b41219ac28701bfc3e9a538bb1efe431227c /src/message.c | |
parent | 4dc513a22c017b3061287deac74fa55f70a3214c (diff) |
patch 9.0.0071: command overlaps with printed text in scrollbackv9.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)
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c index 1f26a23413..7ba82fa050 100644 --- a/src/message.c +++ b/src/message.c @@ -2595,6 +2595,7 @@ sb_text_start_cmdline(void) sb_text_end_cmdline(void) { do_clear_sb_text = SB_CLEAR_CMDLINE_DONE; + msg_sb_eol(); } /* @@ -2614,7 +2615,7 @@ 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) |