Patch 8.2.4430

7 views
Skip to first unread message

Bram Moolenaar

unread,
Feb 21, 2022, 10:07:54 AM2/21/22
to vim...@googlegroups.com

Patch 8.2.4430
Problem: GTK: crash when using 'guiligatures' and reading from stdin.
Solution: Make a copy of the message. (Amon Sha, closes #9719, closes #9814)
Files: src/fileio.c


*** ../vim-8.2.4429/src/fileio.c 2022-02-16 19:24:03.622162411 +0000
--- src/fileio.c 2022-02-21 14:58:34.526372460 +0000
***************
*** 759,766 ****
// Also write a message in the GUI window, if there is one.
if (gui.in_use && !gui.dying && !gui.starting)
{
! p = (char_u *)_("Reading from stdin...");
! gui_write(p, (int)STRLEN(p));
}
#endif
}
--- 759,771 ----
// Also write a message in the GUI window, if there is one.
if (gui.in_use && !gui.dying && !gui.starting)
{
! // make a copy, gui_write() may try to change it
! p = vim_strsave((char_u *)_("Reading from stdin..."));
! if (p != NULL)
! {
! gui_write(p, (int)STRLEN(p));
! vim_free(p);
! }
}
#endif
}
*** ../vim-8.2.4429/src/version.c 2022-02-21 13:13:44.923693160 +0000
--- src/version.c 2022-02-21 15:00:23.818132806 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4430,
/**/

--
From "know your smileys":
:----} You lie like Pinocchio

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