mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 20:31:19 -03: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:
@@ -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.
|
||||
void reader_data_t::clear_transient_edit() {
|
||||
assert(command_line_has_transient_edit);
|
||||
if (!command_line_has_transient_edit) {
|
||||
return;
|
||||
}
|
||||
command_line.undo();
|
||||
update_buff_pos(&command_line);
|
||||
command_line_changed(&command_line);
|
||||
|
||||
Reference in New Issue
Block a user