Skip to content

Commit 2a78366

Browse files
committed
ledger-display-balance-at-point: Use buffer if too long
`ledger cleared` can produce output with quite a few lines, especially for accounts with subaccounts or multiple commodities. display-message-or-buffer will show output in a buffer if it is too long to fit in the echo area (before this commit, only the last few lines of the output would be displayed at all).
1 parent a268b2b commit 2a78366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ledger-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ the balance into that."
137137
(buffer-substring-no-properties (point-min) (1- (point-max)))
138138
(concat account " is empty.")))))
139139
(when balance
140-
(message balance))))
140+
(display-message-or-buffer balance))))
141141

142142
(defun ledger-display-ledger-stats ()
143143
"Display some summary statistics about the current ledger file."

0 commit comments

Comments
 (0)