patch 8.1.2235: "C" with 'virtualedit' set does not include multi-byte char
Problem: "C" with 'virtualedit' set does not include multi-byte char.
Solution: Include the whole multi-byte char. (Nobuhiro Takasaki,
closes #5152)
diff --git a/src/ops.c b/src/ops.c
index 6a9fbba..42b0dcb 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -912,6 +912,8 @@
oap->end = curwin->w_cursor;
curwin->w_cursor = oap->start;
}
+ if (has_mbyte)
+ mb_adjust_opend(oap);
}
if (oap->line_count == 1) /* delete characters within one line */