-
-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return nil from passthrough-try-completion when table is nil #4682
Return nil from passthrough-try-completion when table is nil #4682
Conversation
I wonder in which case candidate can be |
|
When CAPF return |
Ahhh, it appears I've opened a whole new can of worms... Corfu's completion-in-region-function calls I guess the correct fix should be that |
This appears to be a regression from #4602 |
I agree, this should be a correct fix for the passthough function. |
bfa3e9e
to
b1ee4d2
Compare
Should be good to go now |
Thank you |
Since #4602 the passthrough-try-completion function returns a cons cell even the list of completions is empty, so completion-in-region-functions that rely on the old behavior to call the exit function with an empty string
candidate
and nilcandidates
, which will make the exit func throw. This PR fixes this issue.