From be9dc5802a8e2d6d26d6f9c00475aedafef97c61 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sun, 22 Aug 2021 11:21:02 +0300 Subject: editor: mark target as running when continued --- helix-term/src/application.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'helix-term/src') 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 -- cgit v1.2.3-70-g09d2