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

History search state is not reset with ⌃C #75

Open
JosephPecoraro opened this issue Apr 8, 2017 · 1 comment
Open

History search state is not reset with ⌃C #75

JosephPecoraro opened this issue Apr 8, 2017 · 1 comment

Comments

@JosephPecoraro
Copy link

The history search state is not reset with ^C. So if you use ^C to cancel out of a command and repeat the previous substring search you end up with unexpected results.

If your history is:

1. echo one
2. echo two

In the cases below I use [] to indicate cursor position when pushing ↑ to perform history-substring-search-up.

Current behavior:

# Cycle all the way through the history with the "echo " prefix to get to the end
$ echo []
$ echo two[]
$ echo one[]
$ echo []
$ echo []⌃C

# Type "echo " again and search again produces no results.
$ echo []
$ echo []

I expected to cycle all the way through the results again, just like before. But it seems the ⌃C did not reset the state.

@sunaku
Copy link
Member

sunaku commented May 5, 2017

I'm not able to reproduce this issue here. 😓 asciicast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants