Skip to content

Commit d2fbf3a

Browse files
committed
ledger-complete: Read flycheck-ledger-pedantic in addition to ledger-flymake-be-pedantic
1 parent 4f55d35 commit d2fbf3a

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
@@ -145,7 +145,8 @@ Then one of the elements this function returns will be
145145
;; probably don't want accounts from postings, just those declared
146146
;; with directives. But the name is a little misleading. Should we
147147
;; make a ledger-mode-be-pedantic and use that instead?
148-
(bound-and-true-p ledger-flymake-be-pedantic)
148+
(or (bound-and-true-p ledger-flymake-be-pedantic)
149+
(bound-and-true-p flycheck-ledger-pedantic))
149150
(goto-char (point-min))
150151
(while (re-search-forward ledger-account-name-or-directive-regex nil t)
151152
(let ((account (match-string-no-properties 1)))

0 commit comments

Comments
 (0)