fix(beancount): linter in narrowed buffers

flymake-bean only sends the visible buffer to bean-check, causing a
cascade of unhelpful linter warnings and errors.
This commit is contained in:
Henrik Lissner
2025-05-17 17:50:37 +02:00
parent 55e97eb78a
commit bda27228eb

View File

@ -26,6 +26,10 @@
:around #'beancount--fava-filter
(funcall fn process (ansi-color-filter-apply output)))
(defadvice! +beancount--widen-before-flymake-bean-check--run-a (fn &rest args)
:around #'flymake-bean-check--run
(save-restriction (widen) (apply fn args)))
(map! :map beancount-mode-map
:m "[[" #'+beancount/previous-transaction
:m "]]" #'+beancount/next-transaction