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

Save window excursion when previewing #177

Closed
wants to merge 1 commit into from

Conversation

Stebalien
Copy link
Sponsor

When consult is used with selectrum and mini-frame (minibuffer in a child-frame), window changes due to previews are not reverted on abort (C-g).

Saving the window excursion while selecting a candidate appears to fix the issue and doesn't appear to introduce any other issues. However, I'm not 100% sure why this is an issue with mini-frame, and not an issue without it, so I have no idea if this is the correct fix.

When consult is used with selectrum and mini-frame (minibuffer in a
child-frame), window changes due to previews are not reverted on
abort (`C-g`).

Saving the window excursion while selecting a candidate appears to fix
the issue and doesn't appear to introduce any other issues.
@minad
Copy link
Owner

minad commented Jan 23, 2021

This is not the correct fix since it is too intrusive. Can you please describe the issue precisely? Which kind of window changes are introduced during preview?

@minad
Copy link
Owner

minad commented Jan 23, 2021

Please create a separate issue.

In case you are interested in investigating this, take a look at the consult--preview-position function which saves and restores the marker. Window configuration is not saved there as of now.

@Stebalien
Copy link
Sponsor Author

#178

@minad minad mentioned this pull request Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants