diff --git a/helix-term/src/commands/engine/steel.rs b/helix-term/src/commands/engine/steel.rs index 2378e0e20..ceecf99a0 100644 --- a/helix-term/src/commands/engine/steel.rs +++ b/helix-term/src/commands/engine/steel.rs @@ -152,12 +152,12 @@ where F: FnOnce() -> R, { let handler = INTERRUPT_HANDLER.get().unwrap(); - handler.handle.thread().unpark(); - handler .running .store(true, std::sync::atomic::Ordering::Relaxed); + handler.handle.thread().unpark(); + let res = (f)(); handler.controller.resume(); @@ -1199,8 +1199,6 @@ impl super::PluginSystem for SteelScriptingEngine { event: PromptEvent, ) -> bool { if enter_engine(|x| x.global_exists(command)) { - // let shellwords = Shellwords::from(input); - // let args = shellwords.words(); let args = parts; // We're finalizing the event - we actually want to call the function