mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.1270
Problem: Using "Vp" in an empty buffer can't be undone. (Hauke Petersen) Solution: Save one line in an empty buffer. (Christian Brabandt)
This commit is contained in:
parent
6b487147ac
commit
10315b1201
@ -3497,7 +3497,9 @@ do_put(regname, dir, count, flags)
|
|||||||
#endif
|
#endif
|
||||||
if (dir == FORWARD)
|
if (dir == FORWARD)
|
||||||
++lnum;
|
++lnum;
|
||||||
if (u_save(lnum - 1, lnum) == FAIL)
|
/* 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)
|
||||||
goto end;
|
goto end;
|
||||||
#ifdef FEAT_FOLDING
|
#ifdef FEAT_FOLDING
|
||||||
if (dir == FORWARD)
|
if (dir == FORWARD)
|
||||||
|
@ -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 */
|
||||||
|
/**/
|
||||||
|
1270,
|
||||||
/**/
|
/**/
|
||||||
1269,
|
1269,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user