Patch 8.2.0728

7 views
Skip to first unread message

Bram Moolenaar

unread,
May 10, 2020, 8:14:36 AM5/10/20
to vim...@googlegroups.com

Patch 8.2.0728
Problem: Messages about a deadly signal are not left aligned.
Solution: Output a CR before the NL. (Dominique Pelle, #6055)
Files: src/misc1.c, src/os_unix.c


*** ../vim-8.2.0727/src/misc1.c 2020-05-03 22:57:26.973427368 +0200
--- src/misc1.c 2020-05-10 14:11:27.168391774 +0200
***************
*** 2174,2180 ****
{
if (buf->b_ml.ml_mfp != NULL && buf->b_ml.ml_mfp->mf_fname != NULL)
{
! OUT_STR("Vim: preserving files...\n");
screen_start(); // don't know where cursor is now
out_flush();
ml_sync_all(FALSE, FALSE); // preserve all swap files
--- 2174,2180 ----
{
if (buf->b_ml.ml_mfp != NULL && buf->b_ml.ml_mfp->mf_fname != NULL)
{
! 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,2190 ****

ml_close_all(FALSE); // close all memfiles, without deleting

! OUT_STR("Vim: Finished.\n");

getout(1);
}
--- 2184,2190 ----

ml_close_all(FALSE); // close all memfiles, without deleting

! OUT_STR("Vim: Finished.\r\n");

getout(1);
}
*** ../vim-8.2.0727/src/os_unix.c 2020-05-09 16:11:30.316503475 +0200
--- src/os_unix.c 2020-05-10 14:11:51.984258909 +0200
***************
*** 1083,1092 ****

// No translation, it may call malloc().
#ifdef SIGHASARG
! sprintf((char *)IObuff, "Vim: Caught deadly signal %s\n",
signal_info[i].name);
#else
! sprintf((char *)IObuff, "Vim: Caught deadly signal\n");
#endif

// Preserve files and exit. This sets the really_exiting flag to prevent
--- 1083,1092 ----

// No translation, it may call malloc().
#ifdef SIGHASARG
! sprintf((char *)IObuff, "Vim: Caught deadly signal %s\r\n",
signal_info[i].name);
#else
! sprintf((char *)IObuff, "Vim: Caught deadly signal\r\n");
#endif

// Preserve files and exit. This sets the really_exiting flag to prevent
*** ../vim-8.2.0727/src/version.c 2020-05-10 13:42:39.377975569 +0200
--- src/version.c 2020-05-10 14:12:48.951961442 +0200
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 728,
/**/

--
hundred-and-one symptoms of being an internet addict:
88. Every single time you press the 'Get mail' button...it does get new mail.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages