]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid errors in 'delete-forward-char' deleting static compositions
authorEli Zaretskii <eliz@gnu.org>
Fri, 2 Jun 2023 12:42:42 +0000 (15:42 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 2 Jun 2023 12:42:42 +0000 (15:42 +0300)
* lisp/simple.el (delete-forward-char): Fix recognition of static
compositions.  (Bug#63837)

lisp/simple.el

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