0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 9.0.0595: extra newline in messages after a verbose shell message

Problem:    Extra newline in messages after a verbose shell message.
Solution:   Output the newline with msg_putchar_attr(). (closes #11233)
            Make it possible to filter a screendump before comparing it.
This commit is contained in:
Bram Moolenaar
2022-09-26 19:50:44 +01:00
parent 2cb4a89797
commit 1190139ed0
10 changed files with 101 additions and 12 deletions

View File

@@ -2602,7 +2602,8 @@ msg_puts_display(
if (msg_win != NULL)
popup_show_message_win();
#endif
if (p_more && !recurse)
// Store the text for scroll back, unless it's a newline by itself.
if (p_more && !recurse && !(s == sb_str + 1 && *sb_str == '\n'))
store_sb_text(&sb_str, s, attr, &sb_col, FALSE);
msg_check();