Skip to content

Commit 2f26176

Browse files
committed
updated for version 7.3.1293
Problem: Put in empty buffer cannot be undone. Solution: Save one more line for undo. (Ozaki)
1 parent 4cda9e6 commit 2f26176

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3499,7 +3499,7 @@ do_put(regname, dir, count, flags)
34993499
++lnum;
35003500
/* In an empty buffer the empty line is going to be replaced, include
35013501
* it in the saved lines. */
3502-
if ((bufempty() ? u_save(0, 1) : u_save(lnum - 1, lnum)) == FAIL)
3502+
if ((bufempty() ? u_save(0, 2) : u_save(lnum - 1, lnum)) == FAIL)
35033503
goto end;
35043504
#ifdef FEAT_FOLDING
35053505
if (dir == FORWARD)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ static char *(features[]) =
728728

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
1293,
731733
/**/
732734
1292,
733735
/**/

0 commit comments

Comments
 (0)