]> git.eshelyaron.com Git - emacs.git/commitdiff
Make emoji-describe really describe only the glyph under point
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 15:04:18 +0000 (16:04 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 15:04:22 +0000 (16:04 +0100)
* lisp/international/emoji.el (emoji-describe): Only look at the
compositions under point (bug#51659).

lisp/international/emoji.el

index f95a9e79c4e8dccc9739b12c78d30e14ea1f8fff..2cba707b5fa7c5d52ced94992ec46c1e356e3112 100644 (file)
@@ -120,7 +120,7 @@ character) under point is."
   (interactive
    (list (if (eobp)
              (error "No glyph under point")
-           (let ((comp (find-composition (point))))
+           (let ((comp (find-composition (point) (1+ (point)))))
              (if comp
                  (buffer-substring-no-properties (car comp) (cadr comp))
                (buffer-substring-no-properties (point) (1+ (point))))))