You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
In the cases below I use
[]
to indicate cursor position when pushing ↑ to performhistory-substring-search-up
.Current behavior:
I expected to cycle all the way through the results again, just like before. But it seems the ⌃C did not reset the state.
The text was updated successfully, but these errors were encountered: