summaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui.c b/src/gui.c
index 8701d08a5..32ae3bf4b 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -3852,12 +3852,7 @@ scroll_line_len(lnum)
for (;;)
{
w = chartabsize(p, col);
-#ifdef FEAT_MBYTE
- if (has_mbyte)
- p += (*mb_ptr2len_check)(p);
- else
-#endif
- ++p;
+ mb_ptr_adv(p);
if (*p == NUL) /* don't count the last character */
break;
col += w;