on master help sign in
fix clippy warning
commit9a73d3f1b97d41aab101262ce72fc3019c4a0f91 authorBlaž Hrastnik <blaz@mxxn.io> dateWed 7 Oct 2020, 14:16 (6 years ago) parent03795e5
1 file changed+1−1
helix-term/src/editor.rs+1−1
helix-term/src/editor.rs+1−1
@@ -91,7 +91,7 @@ impl Editor {
9191
9292 let range = {
9393 // calculate viewport byte ranges
94− let start = view.state.doc().line_to_byte(view.first_line.into());
94+ let start = view.state.doc().line_to_byte(view.first_line);
9595 let end = view.state.doc().line_to_byte(last_line)
9696 + view.state.doc().line(last_line).len_bytes();
9797