commit 4fb429ca25504f4bd8cada45c8a0632bbad09e00 parent dff7ea3752b1201df6d3cb2d438fb7a19fb39e91 Author: Iqbal Ansari <iqbalansari02@yahoo.com> Date: Thu, 13 Jun 2019 11:37:09 +0530 Fix emojify--get-characters-for-composition's interpretation of relative-p flag in the composition Diffstat:
M | emojify.el | | | 16 | ++++++++-------- |
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/emojify.el b/emojify.el @@ -894,14 +894,14 @@ and then `emojify-emojis'." (defun emojify--get-characters-for-composition (composition) "Extract the characters from COMPOSITION." - (let ((index -1)) - (if (nth 3 composition) - (seq-filter #'identity - (seq-map (lambda (elt) - (cl-incf index) - (when (cl-evenp index) elt)) - (nth 2 composition))) - (nth 2 composition)))) + (if (nth 3 composition) + (nth 2 composition) + (let ((index -1)) + (seq-filter #'identity + (seq-map (lambda (elt) + (cl-incf index) + (when (cl-evenp index) elt)) + (nth 2 composition)))))) (defun emojify--get-composed-text (point) "Get the text used as composition property at POINT.