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:
parent
2f94f6de9d
commit
dc7acb1aaf
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue