summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-09-25 23:24:57 +0200
committerBram Moolenaar <Bram@vim.org>2013-09-25 23:24:57 +0200
commit033d8888e8d6648b5540dc3dda85aba3c5a192de (patch)
treecdbe3c1bf57d48a8bd45f0c25a9ff6f889df8b26 /src/ops.c
parentcca74134564a99f638a583d79d2cfd3ca393673d (diff)
downloadvim-033d8888e8d6648b5540dc3dda85aba3c5a192de.zip
updated for version 7.4.041
Problem: Visual selection does not remain after being copied over. (Axel Bender) Solution: Move when VIsual_active is reset. (Christian Brabandt)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ops.c b/src/ops.c
index db5a182c1..b1f75a1ea 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -3808,9 +3808,6 @@ do_put(regname, dir, count, flags)
FALSE /* stop after 1 paste */
#endif
);
-#ifdef FEAT_VISUAL
- VIsual_active = FALSE;
-#endif
curbuf->b_op_end = curwin->w_cursor;
/* For "CTRL-O p" in Insert mode, put cursor after last char */
@@ -3972,6 +3969,10 @@ end:
if (regname == '=')
vim_free(y_array);
+#ifdef FEAT_VISUAL
+ VIsual_active = FALSE;
+#endif
+
/* If the cursor is past the end of the line put it at the end. */
adjust_cursor_eol();
}