1
0
forked from aniani/vim

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)
{
// 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)