mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
reader: minor simplification
This commit is contained in:
@@ -2434,8 +2434,7 @@ fn handle_char_event(&mut self, injected_event: Option<CharEvent>) -> ControlFlo
|
||||
});
|
||||
|
||||
// If we ran `exit` anywhere, exit.
|
||||
self.exit_loop_requested =
|
||||
self.exit_loop_requested || self.parser.libdata().exit_current_script;
|
||||
self.exit_loop_requested |= self.parser.libdata().exit_current_script;
|
||||
self.parser.libdata_mut().exit_current_script = false;
|
||||
if self.exit_loop_requested {
|
||||
return ControlFlow::Continue(());
|
||||
|
||||
Reference in New Issue
Block a user