@@ -125,6 +125,10 @@ pub fn move_line_start(cx: &mut Context) {
125 doc.set_selection(selection);
125 doc.set_selection(selection);
128+// TODO: move vs extend could take an extra type Extend/Move that would
129+// Range::new(if Move { pos } if Extend { range.anchor }, pos)
130+// since these all really do the same thing
128pub fn move_next_word_start(cx: &mut Context) {
132pub fn move_next_word_start(cx: &mut Context) {
129 let count = cx.count;
133 let count = cx.count;
130 let doc = cx.doc();
134 let doc = cx.doc();
@@ -958,9 +962,7 @@ pub fn format_selections(cx: &mut Context) {
958 .selection()
962 .selection()
959 .ranges()
963 .ranges()
962− helix_lsp::util::range_to_lsp_range(doc.text().slice(..), doc.selection().primary())
965+ .map(|range| helix_lsp::util::range_to_lsp_range(doc.text().slice(..), *range))
964 .collect();
966 .collect();
966 for range in ranges {
968 for range in ranges {