1
0
forked from aniani/vim

updated for version 7.3.1293

Problem:    Put in empty buffer cannot be undone.
Solution:   Save one more line for undo. (Ozaki)
This commit is contained in:
Bram Moolenaar 2013-07-03 14:19:54 +02:00
parent 5e6d5ca16c
commit caf2dffd51
2 changed files with 3 additions and 1 deletions

View File

@ -3499,7 +3499,7 @@ do_put(regname, dir, count, flags)
++lnum; ++lnum;
/* In an empty buffer the empty line is going to be replaced, include /* In an empty buffer the empty line is going to be replaced, include
* it in the saved lines. */ * 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; goto end;
#ifdef FEAT_FOLDING #ifdef FEAT_FOLDING
if (dir == FORWARD) if (dir == FORWARD)

View File

@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1293,
/**/ /**/
1292, 1292,
/**/ /**/