mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-16 23:02:45 +08:00
Fix crash on escape in complete-and-search pager
Reproduce with `: <Shift+Tab><Escape>`.
Introduced in 8a033b9f3
Add undo
This commit is contained in:
parent
706c1a838e
commit
8eadef81a4
|
@ -1963,7 +1963,9 @@ void reader_data_t::set_command_line_and_position(editable_line_t *el, wcstring
|
||||||
|
|
||||||
/// Undo the transient edit und update commandline accordingly.
|
/// Undo the transient edit und update commandline accordingly.
|
||||||
void reader_data_t::clear_transient_edit() {
|
void reader_data_t::clear_transient_edit() {
|
||||||
assert(command_line_has_transient_edit);
|
if (!command_line_has_transient_edit) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
command_line.undo();
|
command_line.undo();
|
||||||
update_buff_pos(&command_line);
|
update_buff_pos(&command_line);
|
||||||
command_line_changed(&command_line);
|
command_line_changed(&command_line);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user