0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0728: messages about a deadly signal are not left aligned

Problem:    Messages about a deadly signal are not left aligned.
Solution:   Output a CR before the NL. (Dominique Pelle, #6055)
This commit is contained in:
Bram Moolenaar
2020-05-10 14:14:03 +02:00
parent d695ba732d
commit 69212b11d1
3 changed files with 6 additions and 4 deletions

View File

@@ -1083,10 +1083,10 @@ deathtrap SIGDEFARG(sigarg)
// No translation, it may call malloc().
#ifdef SIGHASARG
sprintf((char *)IObuff, "Vim: Caught deadly signal %s\n",
sprintf((char *)IObuff, "Vim: Caught deadly signal %s\r\n",
signal_info[i].name);
#else
sprintf((char *)IObuff, "Vim: Caught deadly signal\n");
sprintf((char *)IObuff, "Vim: Caught deadly signal\r\n");
#endif
// Preserve files and exit. This sets the really_exiting flag to prevent