diff src/misc2.c @ 30519:4a88061200c2 v9.0.0595

patch 9.0.0595: extra newline in messages after a verbose shell message Commit: https://github.com/vim/vim/commit/1190139ed01c27539615beea9559a88b2551daf3 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 26 19:50:44 2022 +0100 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 https://github.com/vim/vim/issues/11233) Make it possible to filter a screendump before comparing it.
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Sep 2022 21:00:04 +0200
parents 2403a1b53826
children e3d5781c7ec6
line wrap: on
line diff
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1795,7 +1795,7 @@ call_shell(char_u *cmd, int opt)
     {
 	verbose_enter();
 	smsg(_("Calling shell to execute: \"%s\""), cmd == NULL ? p_sh : cmd);
-	out_char('\n');
+	msg_putchar_attr('\n', 0);
 	cursor_on();
 	verbose_leave();
     }