aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-08-29 14:03:27 +0000
committerBlaž Hrastnik2021-08-29 14:03:27 +0000
commit03b2d81406d342460604102948305dd96c0826c7 (patch)
tree05ac55a58f328a9b0051e1419c48712b92b9551c /helix-term
parent4d24a436519d98b65f5b3b4a6f9970cc815c228f (diff)
dap: better yet, use Selection::single..
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 193ea505..e4d48f3d 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -350,13 +350,7 @@ impl Application {
let end = dap_pos_to_pos(doc.text(), end_line, end_column.unwrap_or(0))
.unwrap_or(0);
- Selection::new(
- helix_core::smallvec![Range::new(
- start.min(text_end),
- end.min(text_end),
- )],
- 0,
- )
+ Selection::single(start.min(text_end), end.min(text_end))
} else {
Selection::point(start.min(text_end))
};