on master help sign in
move to first nonwhitespace on shift-i
c0d3270Robin van Dijk
helix-term/src/commands.rs+2−2
@@ -1189,9 +1189,9 @@ pub fn buffer_picker(cx: &mut Context) {
1189 cx.push_layer(Box::new(picker));
1189 cx.push_layer(Box::new(picker));
1190}
1190}
1191
1191
1192−// I inserts at the start of each line with a selection
1192+// I inserts at the first nonwhitespace character of each line with a selection
1193pub fn prepend_to_line(cx: &mut Context) {
1193pub fn prepend_to_line(cx: &mut Context) {
1194− move_line_start(cx);
1194+ move_first_nonwhitespace(cx);
1195 let doc = cx.doc();
1195 let doc = cx.doc();
1196 enter_insert_mode(doc);
1196 enter_insert_mode(doc);
1197}
1197}