diff --git a/src/engine.rs b/src/engine.rs index dc30c210..31075d75 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -774,12 +774,10 @@ impl Reedline { busy = false; break; } + } else if event::poll(Duration::from_millis(0))? { + busy = true; } else { - if event::poll(Duration::from_millis(0))? { - busy = true; - } else { - break; - } + break; } }