fix bug in ekp-hyphen-str

This commit is contained in:
Kinneyzhang 2025-08-09 19:29:07 +08:00
parent 564f33ba27
commit 28d6c8ee77

2
ekp.el
View File

@ -290,7 +290,7 @@ return the value of KEY in plist."
(defun ekp-hyphen-str (string)
(propertize
"-" 'face '(:family (ekp-text-data string :latin-font))))
"-" 'face `(:family ,(ekp-text-data string :latin-font))))
(defun ekp-hyphen-pixel (string)
(string-pixel-width (ekp-hyphen-str string)))