summaryrefslogtreecommitdiff
path: root/src/register.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-10 20:24:07 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-10 20:24:07 +0200
commitef85a9b2d9e992ab594e089af3883e381cfad426 (patch)
tree279b5a47466847e5f041f6a5cab5816c663385ae /src/register.c
parent97d2f34c8763ab3a46c9f43284cc17bad3cf9568 (diff)
downloadvim-git-ef85a9b2d9e992ab594e089af3883e381cfad426.tar.gz
patch 8.2.1170: cursor off by one with block paste while 'virtualedit' "all"v8.2.1170
Problem: Cursor off by one with block paste while 'virtualedit' is "all". Solution: Adjust condition. (Hugo Gualandi, closes #6430)
Diffstat (limited to 'src/register.c')
-rw-r--r--src/register.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/register.c b/src/register.c
index 9d4354aff..47fcd7382 100644
--- a/src/register.c
+++ b/src/register.c
@@ -1764,7 +1764,7 @@ do_put(
{
if (dir == FORWARD && c == NUL)
++col;
- if (dir != FORWARD && c != NUL)
+ if (dir != FORWARD && c != NUL && curwin->w_cursor.coladd > 0)
++curwin->w_cursor.col;
if (c == TAB)
{