diff options
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r-- | helix-term/src/application.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index d8ff2a8a..27062a36 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -320,7 +320,12 @@ impl Application { for thread in threads { fetch_stack_trace(debugger, thread.id).await; } - select_thread_id(&mut self.editor, thread_id.unwrap_or(0), false).await; + select_thread_id( + &mut self.editor, + thread_id.unwrap_or_default(), + false, + ) + .await; } } else if let Some(thread_id) = thread_id { debugger.thread_states.insert(thread_id, reason.clone()); // TODO: dap uses "type" || "reason" here |