Patch 8.2.1092
Problem: Not checking if saving for undo succeeds.
Solution: Bail out if u_savesub() returns FAIL.
Files: src/textprop.c
*** ../vim-8.2.1091/src/textprop.c 2020-05-30 15:31:57.858700863 +0200
--- src/textprop.c 2020-06-29 23:01:06.012146797 +0200
***************
*** 1350,1357 ****
if (res.dirty)
{
// Save for undo if requested and not done yet.
! if ((flags & APC_SAVE_FOR_UNDO) && !dirty)
! u_savesub(lnum);
dirty = TRUE;
}
if (res.can_drop)
--- 1350,1358 ----
if (res.dirty)
{
// Save for undo if requested and not done yet.
! if ((flags & APC_SAVE_FOR_UNDO) && !dirty
! && u_savesub(lnum) == FAIL)
! return FALSE;
dirty = TRUE;
}
if (res.can_drop)
*** ../vim-8.2.1091/src/version.c 2020-06-29 22:40:38.672779575 +0200
--- src/version.c 2020-06-29 23:01:53.655970618 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1092,
/**/
--
The most powerful force in the universe is gossip.
/// 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 ///