mirror of https://github.com/helix-editor/helix
unpark the interrupt handler after resuming
parent
05f4352722
commit
c9b52761ec
|
@ -152,12 +152,12 @@ where
|
||||||
F: FnOnce() -> R,
|
F: FnOnce() -> R,
|
||||||
{
|
{
|
||||||
let handler = INTERRUPT_HANDLER.get().unwrap();
|
let handler = INTERRUPT_HANDLER.get().unwrap();
|
||||||
handler.handle.thread().unpark();
|
|
||||||
|
|
||||||
handler
|
handler
|
||||||
.running
|
.running
|
||||||
.store(true, std::sync::atomic::Ordering::Relaxed);
|
.store(true, std::sync::atomic::Ordering::Relaxed);
|
||||||
|
|
||||||
|
handler.handle.thread().unpark();
|
||||||
|
|
||||||
let res = (f)();
|
let res = (f)();
|
||||||
|
|
||||||
handler.controller.resume();
|
handler.controller.resume();
|
||||||
|
@ -1199,8 +1199,6 @@ impl super::PluginSystem for SteelScriptingEngine {
|
||||||
event: PromptEvent,
|
event: PromptEvent,
|
||||||
) -> bool {
|
) -> bool {
|
||||||
if enter_engine(|x| x.global_exists(command)) {
|
if enter_engine(|x| x.global_exists(command)) {
|
||||||
// let shellwords = Shellwords::from(input);
|
|
||||||
// let args = shellwords.words();
|
|
||||||
let args = parts;
|
let args = parts;
|
||||||
|
|
||||||
// We're finalizing the event - we actually want to call the function
|
// We're finalizing the event - we actually want to call the function
|
||||||
|
|
Loading…
Reference in New Issue