0
0
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:
Bram Moolenaar
2020-06-29 23:02:21 +02:00
parent d034220c54
commit cf070112ca
2 changed files with 5 additions and 2 deletions

View File

@@ -1350,8 +1350,9 @@ adjust_prop_columns(
if (res.dirty) if (res.dirty)
{ {
// Save for undo if requested and not done yet. // Save for undo if requested and not done yet.
if ((flags & APC_SAVE_FOR_UNDO) && !dirty) if ((flags & APC_SAVE_FOR_UNDO) && !dirty
u_savesub(lnum); && u_savesub(lnum) == FAIL)
return FALSE;
dirty = TRUE; dirty = TRUE;
} }
if (res.can_drop) if (res.can_drop)

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1092,
/**/ /**/
1091, 1091,
/**/ /**/