reader: minor simplification

This commit is contained in:
Johannes Altmanninger
2025-05-17 07:30:33 +02:00
parent e5fdd77b09
commit c7a19a00ab

View File

@@ -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(());