commit 11f17c65564e0a870f634de3f271b0a5ba606e81
parent db47be4ebdd7b593c2e6ad1eba6399092fe830b5
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date: Sun, 15 Nov 2015 10:12:19 +0530
Update unicode display to work with last change
Use the string in the data directly
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/emojify.el b/emojify.el
@@ -482,11 +482,9 @@ mark the start and end of region containing the text."
"Get the display text property to display the emoji specified in DATA as unicode characters."
(let* ((unicode (ht-get data "unicode"))
(characters (when unicode
- (seq-map (lambda (hex)
- (string-to-number hex 16))
- (split-string unicode "-")))))
+ (string-to-vector unicode))))
(when (seq-every-p #'char-displayable-p characters)
- (seq-mapcat #'char-to-string characters 'string))))
+ unicode)))
(defun emojify--get-ascii-display (data)
"Get the display text property to display the emoji specified in DATA as ascii characters."