summaryrefslogtreecommitdiffstats
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ui.c b/src/ui.c
index ac88dc6ab5..dd410c5401 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -2952,12 +2952,7 @@ vcol2col(wp, lnum, vcol)
{
++col;
count += win_lbr_chartabsize(wp, ptr, count, NULL);
-# ifdef FEAT_MBYTE
- if (has_mbyte)
- ptr += (*mb_ptr2len_check)(ptr);
- else
-# endif
- ++ptr;
+ mb_ptr_adv(ptr);
}
return col;
}