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: prevents storing last prompt if is top of stack #3609

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

sabify
Copy link
Contributor

@sabify sabify commented Aug 30, 2022

This PR prevents putting the last entered prompt command into the history stack if it was already the top. For example, if you execute :o <file> first and then execute :w three times in the prompt, the current state stores the :w command three times in the history register and you have to scroll three times up to retrieve the entered :o <file> command. This PR fixes it.

@archseer archseer merged commit 1cbf552 into helix-editor:master Sep 1, 2022
@sabify sabify deleted the last-prompt-fix branch September 1, 2022 06:03
thomasskk pushed a commit to thomasskk/helix that referenced this pull request Sep 9, 2022
herkhinah pushed a commit to herkhinah/helix that referenced this pull request Dec 11, 2022
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

3 participants