@@ -42,7 +42,7 @@ pub fn move_line_down(view: &mut View, count: usize) {
4242 .move_selection(Direction::Forward, Granularity::Line, count);
4343}
4444
45−pub fn move_line_end(view: &mut View, count: usize) {
45+pub fn move_line_end(view: &mut View, _count: usize) {
4646 // TODO: use a transaction
4747 let lines = selection_lines(&view.state);
4848
@@ -64,7 +64,7 @@ pub fn move_line_end(view: &mut View, count: usize) {
6464 transaction.apply(&mut view.state);
6565}
6666
67−pub fn move_line_start(view: &mut View, count: usize) {
67+pub fn move_line_start(view: &mut View, _count: usize) {
6868 let lines = selection_lines(&view.state);
6969
7070 let positions = lines
@@ -208,24 +208,24 @@ fn selection_lines(state: &State) -> Vec<usize> {
208208 .map(|range| state.doc.char_to_line(range.head))
209209 .collect::<Vec<_>>();
210210
211− lines.sort();
211+ lines.sort_unstable(); // sorting by usize so _unstable is preferred
212212 lines.dedup();
213213
214214 lines
215215}
216216
217217// I inserts at the start of each line with a selection
218−pub fn prepend_to_line(view: &mut View, _count: usize) {
218+pub fn prepend_to_line(view: &mut View, count: usize) {
219219 view.state.mode = Mode::Insert;
220220
221− move_line_start(view, _count);
221+ move_line_start(view, count);
222222}
223223
224224// A inserts at the end of each line with a selection
225−pub fn append_to_line(view: &mut View, _count: usize) {
225+pub fn append_to_line(view: &mut View, count: usize) {
226226 view.state.mode = Mode::Insert;
227227
228− move_line_end(view, _count);
228+ move_line_end(view, count);
229229}
230230
231231// o inserts a new line after each line with a selection