emacs-emojify

fork of https://github.com/iqbalansari/emacs-emojify
Log | Files | Refs | LICENSE

commit 9655017936b2c9b483622d51ca1fb195b040e06d
parent fd6efdf1393f2a3df8a57ac3af792d413397c3aa
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Sun,  4 Sep 2016 16:23:05 +0530

Fix a minor regression introduced in overlapping emojis fix

Use (1- match-end) as the bound of the current emoji

Diffstat:
Memojify.el | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emojify.el b/emojify.el @@ -808,7 +808,7 @@ TODO: Skip emojifying if region is already emojified." ;; this means larger emojis get precedence over smaller ;; ones (not (or (get-text-property match-beginning 'emojified) - (get-text-property match-end 'emojified))) + (get-text-property (1- match-end) 'emojified))) ;; Display unconditionally in non-prog mode (or (not (derived-mode-p 'prog-mode 'tuareg--prog-mode 'comint-mode)) ;; In prog mode enable respecting `emojify-program-contexts'