branch: externals/hyperbole
commit 63eb11702e6a60aff80cbeaff45c3565d2e08c87
Author: Mats Lidell <[email protected]>
Commit: Mats Lidell <[email protected]>
Update after review
---
hibtypes.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hibtypes.el b/hibtypes.el
index 517cca26d7..677daa95c2 100644
--- a/hibtypes.el
+++ b/hibtypes.el
@@ -3,7 +3,7 @@
;; Author: Bob Weiner
;;
;; Orig-Date: 19-Sep-91 at 20:45:31
-;; Last-Mod: 23-Aug-24 at 21:28:35 by Mats Lidell
+;; Last-Mod: 23-Aug-24 at 21:32:09 by Mats Lidell
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -996,9 +996,9 @@ than a helm completion buffer)."
(while (and (= (forward-line -1) 0)
(looking-at "[1-9][0-9]*[-:]\\|--$")))
(unless (or (looking-at "[1-9][0-9]*[-:]\\|--$")
- (and (setq file (buffer-substring-no-properties
(line-beginning-position) (line-end-position)))
- (or (string-empty-p (string-trim file))
- (not (file-exists-p (string-trim file))))))
+ (and (setq file (string-trim
(buffer-substring-no-properties (line-beginning-position) (match-beginning 0))))
+ (or (string-empty-p file)
+ (not (file-exists-p file)))))
(ibut:label-set (concat file ":" line-num))
(hact 'hib-link-to-file-line file line-num)))))))