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 -- [email protected] -- 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 ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202006292102.05TL2oMU725153%40masaka.moolenaar.net.