0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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

@@ -2174,7 +2174,7 @@ preserve_exit(void)
{ {
if (buf->b_ml.ml_mfp != NULL && buf->b_ml.ml_mfp->mf_fname != NULL) if (buf->b_ml.ml_mfp != NULL && buf->b_ml.ml_mfp->mf_fname != NULL)
{ {
OUT_STR("Vim: preserving files...\n"); OUT_STR("Vim: preserving files...\r\n");
screen_start(); // don't know where cursor is now screen_start(); // don't know where cursor is now
out_flush(); out_flush();
ml_sync_all(FALSE, FALSE); // preserve all swap files ml_sync_all(FALSE, FALSE); // preserve all swap files
@@ -2184,7 +2184,7 @@ preserve_exit(void)
ml_close_all(FALSE); // close all memfiles, without deleting ml_close_all(FALSE); // close all memfiles, without deleting
OUT_STR("Vim: Finished.\n"); OUT_STR("Vim: Finished.\r\n");
getout(1); getout(1);
} }

View File

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

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
728,
/**/ /**/
727, 727,
/**/ /**/