vim-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, vim/vim#6055)
69212b11d1
This commit is contained in:
Jan Edmund Lazo
2020-10-16 22:25:13 -04:00
parent 288f7f8558
commit 96a555346b
2 changed files with 4 additions and 4 deletions

View File

@@ -983,7 +983,7 @@ void preserve_exit(void)
FOR_ALL_BUFFERS(buf) {
if (buf->b_ml.ml_mfp != NULL && buf->b_ml.ml_mfp->mf_fname != NULL) {
mch_errmsg((uint8_t *)"Vim: preserving files...\n");
mch_errmsg("Vim: preserving files...\r\n");
ui_flush();
ml_sync_all(false, false, true); // preserve all swap files
break;
@@ -992,7 +992,7 @@ void preserve_exit(void)
ml_close_all(false); // close all memfiles, without deleting
mch_errmsg("Vim: Finished.\n");
mch_errmsg("Vim: Finished.\r\n");
getout(1);
}

View File

@@ -161,7 +161,7 @@ static void deadly_signal(int signum)
WLOG("got signal %d (%s)", signum, signal_name(signum));
snprintf((char *)IObuff, sizeof(IObuff), "Vim: Caught deadly signal '%s'\n",
snprintf((char *)IObuff, sizeof(IObuff), "Vim: Caught deadly signal '%s'\r\n",
signal_name(signum));
// Preserve files and exit.