Commit c4f14ccb authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(message, message1): If noninteractive and

cursor_in_echo_area, don't print a newline at end of message.
parent 09c95874
......@@ -187,7 +187,10 @@ message1 (m)
if (noninteractive_need_newline)
putc ('\n', stderr);
noninteractive_need_newline = 0;
fprintf (stderr, "%s\n", m);
if (cursor_in_echo_area != 0)
fprintf (stderr, "%s", m);
else
fprintf (stderr, "%s\n", m);
fflush (stderr);
}
/* A null message buffer means that the frame hasn't really been
......@@ -237,7 +240,8 @@ message (m, a1, a2, a3)
putc ('\n', stderr);
noninteractive_need_newline = 0;
fprintf (stderr, m, a1, a2, a3);
fprintf (stderr, "\n");
if (cursor_in_echo_area == 0)
fprintf (stderr, "\n");
fflush (stderr);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment