Problem: "C" with 'virtualedit' set does not include multi-byte char.
Solution: Include the whole multi-byte char. (Nobuhiro Takasaki,
closes #5152)
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 */
bwipe!
set virtualedit=
endfunc
+
+func Test_edit_change()
+ new
+ set virtualedit=all
+ call setline(1, "\t⒌")
+ normal Cx
+ call assert_equal('x', getline(1))
+ bwipe!
+endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2235,
/**/
2234,
/**/