mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
parent
d0bd238657
commit
dd4e0a3b6d
1 changed files with 6 additions and 1 deletions
|
@ -3267,8 +3267,13 @@ maybe_t<wcstring> reader_data_t::readline(int nchars_or_0) {
|
|||
handle_readline_command(readline_cmd, rls);
|
||||
|
||||
if (command_ends_history_search(readline_cmd)) {
|
||||
history_search.reset();
|
||||
if (history_search.active()) {
|
||||
history_search.go_to_end();
|
||||
update_command_line_from_history_search();
|
||||
history_search.reset();
|
||||
}
|
||||
}
|
||||
|
||||
rls.last_cmd = readline_cmd;
|
||||
} else {
|
||||
// Ordinary char.
|
||||
|
|
Loading…
Reference in a new issue