mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user