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.
diff --git a/src/message.c b/src/message.c
index ee11758..fe02aed 100644
--- a/src/message.c
+++ b/src/message.c
@@ -2602,7 +2602,8 @@
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();