diff options
-rw-r--r-- | src/ops.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -3497,7 +3497,9 @@ do_put(regname, dir, count, flags) #endif if (dir == FORWARD) ++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; #ifdef FEAT_FOLDING if (dir == FORWARD) diff --git a/src/version.c b/src/version.c index 8022a78f3..18588e8c4 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1270, +/**/ 1269, /**/ 1268, |