A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/edi.rs')
-rw-r--r--src/edi.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/edi.rs b/src/edi.rs
index 7594977..8421d96 100644
--- a/src/edi.rs
+++ b/src/edi.rs
@@ -1736,6 +1736,14 @@ impl Editor {
let position = self.text.line_to_char(y);
self.text.cursor.add(position + x, &self.text.rope);
}
+ Some(Do::Run(x)) =>
+ if let Some((l, ws)) =
+ lsp!(self).zip(self.workspace.as_deref())
+ {
+ l.runtime
+ .block_on(crate::runnables::run(x, ws))
+ .unwrap();
+ },
None => {}
}
ControlFlow::Continue(())