summaryrefslogtreecommitdiffstats
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-12-24 14:35:23 +0000
committerBram Moolenaar <Bram@vim.org>2004-12-24 14:35:23 +0000
commitb5bf5b8fae9ff5e2f7704686efae2814be1e18f7 (patch)
treefcaa6e0f52dfd691d0c4796d34e402d46ce7c293 /src/charset.c
parent1cd871b5341bf43ee99e136844e3131014880f92 (diff)
updated for version 7.0024v7.0024
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/charset.c b/src/charset.c
index 336eec6244..4560a96d1e 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -816,11 +816,8 @@ win_linetabsize(wp, p, len)
colnr_T col = 0;
char_u *s;
- for (s = p; *s != NUL && (len == MAXCOL || s < p + len); )
- {
+ for (s = p; *s != NUL && (len == MAXCOL || s < p + len); mb_ptr_adv(s))
col += win_lbr_chartabsize(wp, s, col, NULL);
- mb_ptr_adv(s);
- }
return (int)col;
}