on master help sign in
added ge command
commit7ccc4993f4814f72106de4882d00614fdc67ba13 authorJan Hrastnik <jan.hrastnik2@gmail.com> dateMon 5 Oct 2020, 15:47 (6 years ago) parentb7ef798
1 file changed+1−1
helix-view/src/commands.rs+1−1
helix-view/src/commands.rs+1−1
@@ -127,7 +127,7 @@ pub fn move_file_start(view: &mut View, _count: usize) {
127127pub fn move_file_end(view: &mut View, _count: usize) {
128128 // TODO: use a transaction
129129 let text = &view.state.doc;
130− let last_line = text.char_to_line(text.len_lines().checked_sub(1).unwrap());
130+ let last_line = text.line_to_char(text.len_lines().checked_sub(1).unwrap());
131131 view.state.selection = Selection::single(last_line, last_line);
132132
133133 view.state.mode = Mode::Normal;