fix(corfu): prevent void-variable error

Although this error will not be triggered by most people, since
auth-source is loaded by a lot of packages, it can still happen if you
are debugging your configuration (e.g. enabling/disabling modules
one-by-one).
This commit is contained in:
StrawberryTea 2024-04-05 18:42:09 -05:00 committed by Yann Esposito (Yogsototh)
parent 26c70fd428
commit 49cc3530d9
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -28,7 +28,8 @@ use the minibuffer such as `query-replace'.")
('aggressive ('aggressive
(not (or (bound-and-true-p mct--active) (not (or (bound-and-true-p mct--active)
(bound-and-true-p vertico--input) (bound-and-true-p vertico--input)
(eq (current-local-map) read-passwd-map) (and (featurep 'auth-source)
(eq (current-local-map) read-passwd-map))
(and (featurep 'helm-core) (helm--alive-p)) (and (featurep 'helm-core) (helm--alive-p))
(and (featurep 'ido) (ido-active)) (and (featurep 'ido) (ido-active))
(where-is-internal 'minibuffer-complete (where-is-internal 'minibuffer-complete