aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-10-17 05:06:52 +0000
committerBlaž Hrastnik2021-10-17 05:06:52 +0000
commitbda05ec4bfb861c9880dd700ab31c1f9bc79e926 (patch)
tree83f5dfd3faafcff26def96935def03e91ab03ce0 /helix-term/src/application.rs
parent83a816740268ec527bf2f908cf752cfcbedc81f9 (diff)
Use a newtype for ThreadId
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs7
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