• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision71a36879ac2a67706b168208387b299ff80733cb (tree)
Time2020-06-30 06:15:03
AuthorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 8.2.1092: not checking if saving for undo succeeds

Commit: https://github.com/vim/vim/commit/cf070112ca2a6ac9ec5466be1cdc667f6abe8fd0
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 29 23:02:21 2020 +0200

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.

Change Summary

Incremental Difference

diff -r ab5c9907c56e -r 71a36879ac2a src/textprop.c
--- a/src/textprop.c Mon Jun 29 22:45:08 2020 +0200
+++ b/src/textprop.c Mon Jun 29 23:15:03 2020 +0200
@@ -1350,8 +1350,9 @@
13501350 if (res.dirty)
13511351 {
13521352 // Save for undo if requested and not done yet.
1353- if ((flags & APC_SAVE_FOR_UNDO) && !dirty)
1354- u_savesub(lnum);
1353+ if ((flags & APC_SAVE_FOR_UNDO) && !dirty
1354+ && u_savesub(lnum) == FAIL)
1355+ return FALSE;
13551356 dirty = TRUE;
13561357 }
13571358 if (res.can_drop)
diff -r ab5c9907c56e -r 71a36879ac2a src/version.c
--- a/src/version.c Mon Jun 29 22:45:08 2020 +0200
+++ b/src/version.c Mon Jun 29 23:15:03 2020 +0200
@@ -755,6 +755,8 @@
755755 static int included_patches[] =
756756 { /* Add new patch number below this line */
757757 /**/
758+ 1092,
759+/**/
758760 1091,
759761 /**/
760762 1090,
Show on old repository browser