mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Fixed crash caused by pressing pageup button
This commit is contained in:
parent
1a93cbba1e
commit
ccfc909eb2
1 changed files with 5 additions and 1 deletions
|
@ -3213,7 +3213,11 @@ const wchar_t *reader_readline()
|
|||
|
||||
case R_BEGINNING_OF_HISTORY:
|
||||
{
|
||||
data->history_search.go_to_beginning();
|
||||
data->history_search = history_search_t(*data->history, data->command_line, HISTORY_SEARCH_TYPE_PREFIX);
|
||||
data->history_search.go_to_beginning();
|
||||
wcstring new_text = data->history_search.current_string();
|
||||
set_command_line_and_position(new_text, new_text.size());
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue