1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2019-10-31 03:21:25 +01:00
parent 3f39697b73
commit 77ccc00340
3 changed files with 13 additions and 0 deletions

View File

@@ -912,6 +912,8 @@ op_delete(oparg_T *oap)
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 */