mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user