fix clippy warning
This commit is contained in:
parent
03795e5674
commit
9a73d3f1b9
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ impl Editor {
|
|||
|
||||
let range = {
|
||||
// calculate viewport byte ranges
|
||||
let start = view.state.doc().line_to_byte(view.first_line.into());
|
||||
let start = view.state.doc().line_to_byte(view.first_line);
|
||||
let end = view.state.doc().line_to_byte(last_line)
|
||||
+ view.state.doc().line(last_line).len_bytes();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue