A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/commands.rs')
-rw-r--r--src/commands.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/commands.rs b/src/commands.rs
index 13f77fb..f91ee2d 100644
--- a/src/commands.rs
+++ b/src/commands.rs
@@ -432,7 +432,8 @@ impl Editor {
..default()
}),
Cmd::Incoming => {
- let x = l.runtime.spawn(l.callers(tdpp!(self)));
+ let l2 = l.clone();
+ let x = l.runtime.spawn(l2.callers(tdpp!(self)));
self.state = crate::edi::st::State::GoToL(GoToList {
data: (
vec![],
@@ -442,7 +443,8 @@ impl Editor {
});
}
Cmd::Outgoing => {
- let x = l.runtime.spawn(l.calling(tdpp!(self)));
+ let l2 = l.clone();
+ let x = l.runtime.spawn(l2.calling(tdpp!(self)));
self.state = crate::edi::st::State::GoToL(GoToList {
data: (
vec![],