@@ -80,9 +80,8 @@ pub fn prepend_to_line(state: &mut State, _count: usize) {
80 let positions: Vec<_> = lines
80 let positions: Vec<_> = lines
81 .into_iter()
81 .into_iter()
82 .map(|index| {
82 .map(|index| {
83− // adjust all positions to the end of the line.
83+ // adjust all positions to the start of the line.
84− let line_start = state.doc.line_to_char(index);
84+ state.doc.line_to_char(index)
87 .collect();
86 .collect();