summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index 4ad982f7f..fa159e983 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -410,7 +410,15 @@ shift_block(oparg_T *oap, int amount)
{
#ifdef FEAT_MBYTE
if (has_mbyte)
- bd.textstart += (*mb_ptr2len)(bd.textstart);
+ {
+ if ((*mb_ptr2len)(bd.textstart) == 1)
+ ++bd.textstart;
+ else
+ {
+ ws_vcol = 0;
+ bd.startspaces = 0;
+ }
+ }
else
#endif
++bd.textstart;