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

consult--async-split: do not insert initial split char if the minibuffer already starts with it #1164

Closed
wants to merge 1 commit into from

Conversation

kassick
Copy link

@kassick kassick commented Jan 14, 2025

When running vertico-repeat-previous, vertico will clear the minibuffer and then insert the text that was saved in history (e.g. "#some-text").

Later, when consult--async-split tries to insert the split char, the restored session ends up with "##some-text" as input -- which does not search for anything.

This commit fixes the issue by checking the minibuffer contents before inserting the initial split char.

…fer already starts with it

When running vertico-repeat-previous, vertico will clear the minibuffer and
then insert the text that was saved in history (e.g. "#some-text").

Later, when consult--async-split tries to inser the split char in the
minibuffer, the restored session has "##some-text" as input -- which does not
search for anything.

This commit fixes the issue by checking the minibuffer contents before
inserting the initial split char.
@minad minad closed this in 96e5f67 Jan 14, 2025
@minad
Copy link
Owner

minad commented Jan 14, 2025

Thanks! I pushed a slightly different fix.

@kassick
Copy link
Author

kassick commented Jan 14, 2025

Awesome! The fix worked fine here for me!

Closing this.

Thanks @minad !

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.

2 participants