Skip to content

Commit 8f06415

Browse files
committed
ledger-complete: Read flycheck-ledger-pedantic in addition to ledger-flymake-be-pedantic
1 parent c0143ef commit 8f06415

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ledger-complete.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ Then one of the elements this function returns will be
146146
;; probably don't want accounts from postings, just those declared
147147
;; with directives. But the name is a little misleading. Should we
148148
;; make a ledger-mode-be-pedantic and use that instead?
149-
(bound-and-true-p ledger-flymake-be-pedantic)
149+
(or (bound-and-true-p ledger-flymake-be-pedantic)
150+
(bound-and-true-p flycheck-ledger-pedantic))
150151
(ledger-xact-iterate-transactions
151152
(lambda (_pos _date _state _payee)
152153
(let ((end (save-excursion (ledger-navigate-end-of-xact))))

0 commit comments

Comments
 (0)