summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ops.c b/src/ops.c
index 29afc56c9..2980f9301 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -2886,6 +2886,15 @@ op_yank(oap, deleting, mess)
*/
curbuf->b_op_start = oap->start;
curbuf->b_op_end = oap->end;
+ if (yanktype == MLINE
+#ifdef FEAT_VISUAL
+ && !oap->block_mode
+#endif
+ )
+ {
+ curbuf->b_op_start.col = 0;
+ curbuf->b_op_end.col = MAXCOL;
+ }
#ifdef FEAT_CLIPBOARD
/*