Skip to content
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

Fix ivy-restrict-to-matches for dynamic colls #2894

Merged
merged 1 commit into from
Jul 27, 2021
Merged

Conversation

basil-conto
Copy link
Collaborator

Other parts of Ivy, specifically ivy--wnd-cands-to-str, use ivy-state-dynamic-collection to differentiate between programmed completion functions and Ivy's dynamic collections. By disabling ivy-state-dynamic-collection in ivy-restrict-to-matches, we lose this ability. This leads to errors when collections are mishandled.

  • ivy.el (ivy-restrict-to-matches): When disabling ivy-state-dynamic-collection, also make sure that minibuffer-completion-table no longer holds a dynamic collection.

Cc: @ambihelical, @gexplorer.
Re: #2875.
Fixes #2893.

Other parts of Ivy, specifically ivy--wnd-cands-to-str, use
ivy-state-dynamic-collection to differentiate between programmed
completion functions and Ivy's dynamic collections.  By disabling
ivy-state-dynamic-collection in ivy-restrict-to-matches, we lose
this ability.  This leads to errors when collections are mishandled.

* ivy.el (ivy-restrict-to-matches): When disabling
ivy-state-dynamic-collection, also make sure that
minibuffer-completion-table no longer holds a dynamic collection.

Re: #2875.
Fixes #2893.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ivy-restrict-to-matches is broken with counsel-rg
1 participant