Mercurial > emacs
comparison src/doc.c @ 54234:e1003d782dc6
(Fsubstitute_command_keys): Fix counding bytes.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 02 Mar 2004 06:11:48 +0000 |
parents | 695cf19ef79e |
children | 98cf37e32872 |
comparison
equal
deleted
inserted
replaced
54233:4da084c4e7a7 | 54234:e1003d782dc6 |
---|---|
819 changed = 1; | 819 changed = 1; |
820 strp += 2; /* skip \{ or \< */ | 820 strp += 2; /* skip \{ or \< */ |
821 start = strp; | 821 start = strp; |
822 start_idx = start - SDATA (string); | 822 start_idx = start - SDATA (string); |
823 | 823 |
824 while ((strp - SDATA (string) < SCHARS (string)) | 824 while ((strp - SDATA (string) < SBYTES (string)) |
825 && *strp != '}' && *strp != '>') | 825 && *strp != '}' && *strp != '>') |
826 strp++; | 826 strp++; |
827 | 827 |
828 length_byte = strp - start; | 828 length_byte = strp - start; |
829 strp++; /* skip } or > */ | 829 strp++; /* skip } or > */ |