comparison src/charset.c @ 40:f1d2a58883b9 v7.0024

updated for version 7.0024
author vimboss
date Fri, 24 Dec 2004 14:35:23 +0000
parents 410fa1a31baf
children f529edb9bab3
comparison
equal deleted inserted replaced
39:410fa1a31baf 40:f1d2a58883b9
814 colnr_T len; 814 colnr_T len;
815 { 815 {
816 colnr_T col = 0; 816 colnr_T col = 0;
817 char_u *s; 817 char_u *s;
818 818
819 for (s = p; *s != NUL && (len == MAXCOL || s < p + len); ) 819 for (s = p; *s != NUL && (len == MAXCOL || s < p + len); mb_ptr_adv(s))
820 {
821 col += win_lbr_chartabsize(wp, s, col, NULL); 820 col += win_lbr_chartabsize(wp, s, col, NULL);
822 mb_ptr_adv(s);
823 }
824 return (int)col; 821 return (int)col;
825 } 822 }
826 823
827 /* 824 /*
828 * return TRUE if 'c' is a normal identifier character 825 * return TRUE if 'c' is a normal identifier character