aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-08-29 14:01:18 +0000
committerBlaž Hrastnik2021-08-29 14:01:18 +0000
commit81f51c13fa7de0ce2a7e787f7d6385d0e72097e9 (patch)
treedab64c75952cb957ce639f33889cb32d73731ec4 /helix-term
parent51328a49662b7daf0fda83e30268fff252d7d00e (diff)
dap: continued: THis check is already done before the match statement
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index b92512be..70abc783 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -314,7 +314,7 @@ impl Application {
if let Some(helix_dap::StackFrame {
source:
Some(helix_dap::Source {
- path: Some(ref src),
+ path: Some(ref path),
..
}),
line,
@@ -324,7 +324,7 @@ impl Application {
..
}) = debugger.stack_pointer
{
- let path = src.clone();
+ let path = path.clone();
self.editor
.open(path, helix_view::editor::Action::Replace)
.unwrap();
@@ -385,11 +385,9 @@ impl Application {
.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;
- }
+ debugger.stopped_thread = None;
+ debugger.stack_pointer = None;
+ debugger.is_running = true;
}
ev => {
log::warn!("Unhandled event {:?}", ev);