vim-patch:9.0.0595: extra newline in messages after a verbose shell message (#20359)

Problem:    Extra newline in messages after a verbose shell message.
Solution:   Output the newline with msg_putchar_attr(). (closes vim/vim#11233)
            Make it possible to filter a screendump before comparing it.
1190139ed0

Cherry-pick Test_message_more_scrolledback() from patch 9.0.0592 because
Nvim already behaves as intended.
This commit is contained in:
zeertzjq
2022-09-27 08:29:21 +08:00
committed by GitHub
parent 7e98821e56
commit 1d337d4e2f
3 changed files with 199 additions and 19 deletions

View File

@@ -2315,7 +2315,7 @@ static void msg_puts_display(const char *str, int maxlen, int attr, int recurse)
if (t_col > 0) {
t_puts(&t_col, t_s, s, attr);
}
if (p_more && !recurse) {
if (p_more && !recurse && !(s == sb_str + 1 && *sb_str == '\n')) {
store_sb_text((char **)&sb_str, (char *)s, attr, &sb_col, false);
}