From c9b52761ec101296efa724a602616dc540bb807b Mon Sep 17 00:00:00 2001 From: Matt Paras Date: Wed, 26 Mar 2025 21:37:54 -0700 Subject: [PATCH] unpark the interrupt handler after resuming --- helix-term/src/commands/engine/steel.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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