Problem: Visual-block shift breaks multi-byte characters.
Solution: Compute column differently. (Yasuhiro Matsumoto) Add a test.
{
#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;
test_syntax.res \
test_viminfo.res \
test_viml.res \
+ test_visual.res \
test_alot.res
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1491,
/**/
1490,
/**/