mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
8b9f7dbf45
A history search ends when you move the cursor, but the commandline inserted by history search is still marked as transient. This means that the next history search will clear the transient commandline. This means we are dropping an undo point, for example: echo 11 echo 1 echo autosuggestion echo^P # commandline is "echo 1" ^A # stop history search ^P # commandline is "echo 11" ^Z # Bug: commandline goes back to "echo", but it should be "echo 1" In the worst case, we are switching from line-search to token-search (see the attached test case). Clearing the transient edit means the line is gone and only the token is left on the command line. |
||
---|---|---|
.. | ||
checks | ||
pexpects | ||
test_functions | ||
.gitignore | ||
history_sample_bash | ||
history_sample_corrupt1 | ||
history_sample_fish_1_x | ||
history_sample_fish_2_0 | ||
interactive.config | ||
interactive.fish | ||
test.fish | ||
test_driver.sh | ||
test_env.sh | ||
test_util.fish |