on master help sign in
dap: better yet, use Selection::single..
commit03b2d81406d342460604102948305dd96c0826c7 authorBlaž Hrastnik <blaz@mxxn.io> dateSun 29 Aug 2021, 23:03 (5 years ago) parent4d24a43
1 file changed+1−7
helix-term/src/application.rs+1−7
helix-term/src/application.rs+1−7
@@ -350,13 +350,7 @@ impl Application {
350350 let end = dap_pos_to_pos(doc.text(), end_line, end_column.unwrap_or(0))
351351 .unwrap_or(0);
352352
353− Selection::new(
354− helix_core::smallvec![Range::new(
355− start.min(text_end),
356− end.min(text_end),
357− )],
358− 0,
359− )
353+ Selection::single(start.min(text_end), end.min(text_end))
360354 } else {
361355 Selection::point(start.min(text_end))
362356 };