on master help sign in
dap: better yet, use Selection::single..
03b2d81Blaž Hrastnik
helix-term/src/application.rs+1−7
@@ -350,13 +350,7 @@ impl Application {
350 let end = dap_pos_to_pos(doc.text(), end_line, end_column.unwrap_or(0))
350 let end = dap_pos_to_pos(doc.text(), end_line, end_column.unwrap_or(0))
351 .unwrap_or(0);
351 .unwrap_or(0);
352
352
353− Selection::new(
354− helix_core::smallvec![Range::new(
355− start.min(text_end),
353+ Selection::single(start.min(text_end), end.min(text_end))
356− end.min(text_end),
357− )],
358− 0,
359− )
360 } else {
354 } else {
361 Selection::point(start.min(text_end))
355 Selection::point(start.min(text_end))
362 };
356 };