Skip to content

Commit

Permalink
ledger-display-balance-at-point: Use buffer if too long
Browse files Browse the repository at this point in the history
`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).
  • Loading branch information
bcc32 committed Mar 16, 2024
1 parent a268b2b commit 2a78366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ the balance into that."
(buffer-substring-no-properties (point-min) (1- (point-max)))
(concat account " is empty.")))))
(when balance
(message balance))))
(display-message-or-buffer balance))))

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

0 comments on commit 2a78366

Please sign in to comment.