diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-27 08:29:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 08:29:21 +0800 |
commit | 1d337d4e2f2265b13ecf19a3bc17ad302d3b0d96 (patch) | |
tree | 3ed80c888b4e5f27bcde62921d8772505d3ff895 /src/nvim/message.c | |
parent | 7e98821e56a88487f24584463869432d8373a28e (diff) | |
download | rneovim-1d337d4e2f2265b13ecf19a3bc17ad302d3b0d96.tar.gz rneovim-1d337d4e2f2265b13ecf19a3bc17ad302d3b0d96.tar.bz2 rneovim-1d337d4e2f2265b13ecf19a3bc17ad302d3b0d96.zip |
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.
https://github.com/vim/vim/commit/1190139ed01c27539615beea9559a88b2551daf3
Cherry-pick Test_message_more_scrolledback() from patch 9.0.0592 because
Nvim already behaves as intended.
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index e0b0dfb0bc..fd20d9dd81 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -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); } |