From caf2dffd5142f93c75367e3af99e52df7abf73cd Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 3 Jul 2013 14:19:54 +0200 Subject: [PATCH] updated for version 7.3.1293 Problem: Put in empty buffer cannot be undone. Solution: Save one more line for undo. (Ozaki) --- src/ops.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ops.c b/src/ops.c index eaad703e6..ab3d636cd 100644 --- 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 index d661c6436..e03d81b06 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1293, /**/ 1292, /**/ -- 2.50.1