mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1092: not checking if saving for undo succeeds
Problem: Not checking if saving for undo succeeds. Solution: Bail out if u_savesub() returns FAIL.
This commit is contained in:
@@ -1350,8 +1350,9 @@ adjust_prop_columns(
|
||||
if (res.dirty)
|
||||
{
|
||||
// Save for undo if requested and not done yet.
|
||||
if ((flags & APC_SAVE_FOR_UNDO) && !dirty)
|
||||
u_savesub(lnum);
|
||||
if ((flags & APC_SAVE_FOR_UNDO) && !dirty
|
||||
&& u_savesub(lnum) == FAIL)
|
||||
return FALSE;
|
||||
dirty = TRUE;
|
||||
}
|
||||
if (res.can_drop)
|
||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1092,
|
||||
/**/
|
||||
1091,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user