Mercurial > vim
changeset 20345:d636f5e76347 v8.2.0728
patch 8.2.0728: messages about a deadly signal are not left aligned
Commit: https://github.com/vim/vim/commit/69212b11d18d9d8951968f6ca88e6ce046c90675
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 10 14:14:03 2020 +0200
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, https://github.com/vim/vim/issues/6055)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 May 2020 14:15:03 +0200 |
parents | 0c989a5ad800 |
children | cd52b48baba5 |
files | src/misc1.c src/os_unix.c src/version.c |
diffstat | 3 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc1.c +++ b/src/misc1.c @@ -2174,7 +2174,7 @@ preserve_exit(void) { 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 out_flush(); 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 - OUT_STR("Vim: Finished.\n"); + OUT_STR("Vim: Finished.\r\n"); getout(1); }
--- a/src/os_unix.c +++ b/src/os_unix.c @@ -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