aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-22 08:21:02 +0000
committerDmitry Sharshakov2021-08-22 08:21:02 +0000
commitbe9dc5802a8e2d6d26d6f9c00475aedafef97c61 (patch)
treeecfc88cd8bd586e5a46ce2b8a441e8ca5c5db624
parentd93cd2a2611b3305293274f8fb590a01d4b99584 (diff)
editor: mark target as running when continued
-rw-r--r--helix-term/src/application.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 6e3b6e99..9f0e751e 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -324,6 +324,13 @@ impl Application {
self.editor
.set_status("Debugged application started".to_owned());
}
+ Event::Continued(_) => {
+ if let Some(debugger) = self.editor.debugger.as_mut() {
+ debugger.stopped_thread = None;
+ debugger.stack_pointer = None;
+ debugger.is_running = true;
+ }
+ }
ev => {
log::warn!("Unhandled event {:?}", ev);
return; // return early to skip render