Avoid errors in 'delete-forward-char' deleting static compositions

* lisp/simple.el (delete-forward-char): Fix recognition of static
compositions.  (Bug#63837)
This commit is contained in:
Eli Zaretskii 2023-06-02 15:42:42 +03:00
parent 2f94f6de9d
commit dc7acb1aaf

View file

@ -1520,7 +1520,8 @@ the actual saved text might be different from what was killed."
(let ((from (car cmp)) (let ((from (car cmp))
(to (cadr cmp))) (to (cadr cmp)))
(cond (cond
((= (length cmp) 2) ; static composition ((and (= (length cmp) 3) ; static composition
(booleanp (nth 2 cmp)))
to) to)
;; TO can be at POS, in which case we want ;; TO can be at POS, in which case we want
;; to make sure we advance at least by 1 ;; to make sure we advance at least by 1