dap: better yet, use Selection::single..

This commit is contained in:
Blaž Hrastnik 2021-08-29 23:03:27 +09:00
parent 4d24a43651
commit 03b2d81406

View file

@ -350,13 +350,7 @@ impl Application {
let end = dap_pos_to_pos(doc.text(), end_line, end_column.unwrap_or(0)) let end = dap_pos_to_pos(doc.text(), end_line, end_column.unwrap_or(0))
.unwrap_or(0); .unwrap_or(0);
Selection::new( Selection::single(start.min(text_end), end.min(text_end))
helix_core::smallvec![Range::new(
start.min(text_end),
end.min(text_end),
)],
0,
)
} else { } else {
Selection::point(start.min(text_end)) Selection::point(start.min(text_end))
}; };