mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-24 05:27:14 +08:00
parent
d0bd238657
commit
dd4e0a3b6d
|
@ -3267,8 +3267,13 @@ maybe_t<wcstring> reader_data_t::readline(int nchars_or_0) {
|
||||||
handle_readline_command(readline_cmd, rls);
|
handle_readline_command(readline_cmd, rls);
|
||||||
|
|
||||||
if (command_ends_history_search(readline_cmd)) {
|
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;
|
rls.last_cmd = readline_cmd;
|
||||||
} else {
|
} else {
|
||||||
// Ordinary char.
|
// Ordinary char.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user