aboutsummaryrefslogtreecommitdiff
path: root/hcel-utils.el
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-09-29 14:45:59 +1000
committerYuchen Pei <hi@ypei.me>2022-09-29 14:45:59 +1000
commit7f73da1356d141d35047523a8ed0764a95385f7d (patch)
treedcfb69447a97b5f06ee1aa06ccb82e1bde775be1 /hcel-utils.el
parent5e9cd756af1e0b1bbd54103204189832e4860527 (diff)
minor changes.
- https://lists.gnu.org/archive/html/emacs-devel/2022-09/msg01971.html - https://lists.gnu.org/archive/html/emacs-devel/2022-09/msg01444.html
Diffstat (limited to 'hcel-utils.el')
-rw-r--r--hcel-utils.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcel-utils.el b/hcel-utils.el
index 83b3cb6..7f8fa86 100644
--- a/hcel-utils.el
+++ b/hcel-utils.el
@@ -191,7 +191,7 @@ Example of an idSrcSpan:
(defun hcel-text-property-near-point (prop)
"Find property prop at point, or just before point."
(or (get-text-property (point) prop)
- (get-text-property (max 1 (1- (point))) prop)))
+ (get-text-property (max (point-min) (1- (point))) prop)))
(provide 'hcel-utils)
;;; hcel-utils.el ends here.