# HG changeset patch # User Bram Moolenaar # Date 1372853994 -7200 # Node ID 18b43970fb7a796ab740e65baa4ff2ba46f929a8 # Parent 54383bca4b6ea1f23edc519df6c729ddd10c1343 updated for version 7.3.1293 Problem: Put in empty buffer cannot be undone. Solution: Save one more line for undo. (Ozaki) diff --git a/src/ops.c b/src/ops.c --- a/src/ops.c +++ b/src/ops.c @@ -3499,7 +3499,7 @@ do_put(regname, dir, count, flags) ++lnum; /* In an empty buffer the empty line is going to be replaced, include * it in the saved lines. */ - if ((bufempty() ? u_save(0, 1) : u_save(lnum - 1, lnum)) == FAIL) + if ((bufempty() ? u_save(0, 2) : u_save(lnum - 1, lnum)) == FAIL) goto end; #ifdef FEAT_FOLDING if (dir == FORWARD) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1293, +/**/ 1292, /**/ 1291,