(sref): Increase CHAR in the while loop.
This commit is contained in:
parent
673c57d22a
commit
8b52e89266
1 changed files with 2 additions and 1 deletions
|
@ -516,7 +516,8 @@ as returned by the `event-start' and `event-end' functions."
|
|||
Please convert your programs to use `aref' with character-base index."
|
||||
(let ((byte 0) (char 0))
|
||||
(while (< byte byte-index)
|
||||
(setq byte (+ byte (char-bytes (aref string byte)))))
|
||||
(setq byte (+ byte (char-bytes (aref string char)))
|
||||
char (1+ char)))
|
||||
(aref string char)))
|
||||
|
||||
;; Some programs still use this as a function.
|
||||
|
|
Loading…
Add table
Reference in a new issue