org-lint: Fix invocation with C-u prefix argument

* lisp/org-lint.el (org-lint): Fix the order of the arguments in
the `assoc-string' call when calculating the list of checkers to
invoke.

`C-u M-x org-lint' was failing to run any checkers, no matter what
category of checkers was chosen, because the calculation of the list
of checkers always returned `nil'.
This commit is contained in:
Nick Dokos 2022-06-01 12:28:23 -04:00 committed by Ihor Radchenko
parent 1105da80a7
commit 9fd5349d0a
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ ARG can also be a list of checker names, as symbols, to run."
nil t)))
(cl-remove-if-not
(lambda (c)
(assoc-string (org-lint-checker-categories c) category))
(assoc-string category (org-lint-checker-categories c)))
org-lint--checkers)))
(`(16)
(list