File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- ; ;; ledger-report.el --- Helper code for use with the "ledger" command-line tool -*- lexical-binding : t ; -*-
1
+ ; ; ledger-report.el --- Helper code for use with the "ledger" command-line tool -*- lexical-binding : t ; -*-
2
2
3
3
; ; Copyright (C) 2003-2016 John Wiegley (johnw AT gnu DOT org)
4
4
@@ -553,12 +553,14 @@ specific posting at point instead."
553
553
(interactive )
554
554
(let* ((prop (get-text-property (point ) 'ledger-source ))
555
555
(file (car prop))
556
- (line (cdr prop)))
557
- (when (and file line )
556
+ (xact-position (cdr prop)))
557
+ (when (and file xact-position )
558
558
(find-file-other-window file)
559
559
(widen )
560
- (goto-char (point-min ))
561
- (forward-line (1- line))
560
+ (if (markerp xact-position)
561
+ (goto-char xact-position)
562
+ (progn (goto-char (point-min ))
563
+ (forward-line (1- xact-position))))
562
564
(when ledger-report-links-beginning-of-xact
563
565
(ledger-navigate-beginning-of-xact)))))
564
566
You can’t perform that action at this time.
0 commit comments