Fix og--help-echo-from-textprop at buf start/end

This commit is contained in:
TEC 2022-08-07 17:46:12 +08:00
parent 02d7ae3c50
commit 3f4649d09a
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 2 additions and 2 deletions

View File

@ -1765,9 +1765,9 @@ This should only be run as an export hook."
(replace-regexp-in-string
"^[Gg]ls\\(?:pl\\)?:" ""
(buffer-substring-no-properties
(previous-single-property-change (1+ pos) 'face)
(next-single-property-change pos 'face)))))))
(and term-entry (org-glossary--term-help-echo term-entry))))
(or (previous-single-property-change (1+ pos) 'face) (point-min))
(or (next-single-property-change pos 'face) (point-max))))))))
;;; Completion