diff --git a/src/reader.rs b/src/reader.rs index 2d96c4c8d..5067ccbba 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -2434,8 +2434,7 @@ fn handle_char_event(&mut self, injected_event: Option) -> 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(());