aboutsummaryrefslogtreecommitdiff
path: root/hcel-utils.el
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-09-21 14:22:24 +1000
committerYuchen Pei <hi@ypei.me>2022-09-21 14:22:24 +1000
commit9dc18bef43897820b0b9e40ac301a82eedf7e28a (patch)
treee63d55430bacc763f0dee44038505e38d1fa10ae /hcel-utils.el
parent73bd6e9bd92fa57877f2d894f43725a4a0abf1a8 (diff)
fixing header comments
Diffstat (limited to 'hcel-utils.el')
-rw-r--r--hcel-utils.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcel-utils.el b/hcel-utils.el
index 2c3d51f..b44f885 100644
--- a/hcel-utils.el
+++ b/hcel-utils.el
@@ -1,4 +1,4 @@
-;;; hc-utils.el --- Commonly used utilities -*- lexical-binding: t; -*-
+;;; hcel-utils.el --- Commonly used utilities -*- lexical-binding: t; -*-
;; Copyright (C) 2022 Yuchen Pei.
;;
@@ -169,7 +169,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 (1- (point)) prop)))
+ (get-text-property (max 0 (1- (point))) prop)))
(provide 'hcel-utils)
;;; hcel-utils.el ends here.