Skip to content

Commit 8bad528

Browse files
committed
Fix regression testing exit code
Thanks @bcc32, see #336
1 parent 5d46822 commit 8bad528

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ledger-exec.el

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@
6060

6161
(defun ledger-exec-success-p (exit-code ledger-output-buffer)
6262
"Return non-nil if EXIT-CODE and LEDGER-OUTPUT-BUFFER indicate success."
63-
(not
64-
(and (zerop exit-code)
65-
(with-current-buffer ledger-output-buffer
66-
(goto-char (point-min))
67-
(and (> (buffer-size) 1) (looking-at (regexp-quote "While")))))))
63+
(and (zerop exit-code)
64+
(with-current-buffer ledger-output-buffer
65+
(goto-char (point-min))
66+
(not (and (> (buffer-size) 1) (looking-at (regexp-quote "While")))))))
6867

6968
(defun ledger-exec-ledger (input-buffer &optional output-buffer &rest args)
7069
"Run Ledger using INPUT-BUFFER.

0 commit comments

Comments
 (0)