diff options
author | Jan Hrastnik | 2020-10-06 23:41:09 +0000 |
---|---|---|
committer | Jan Hrastnik | 2020-10-06 23:41:09 +0000 |
commit | 750610f0e7e2d27604983ffdcd8d6a447bc898b2 (patch) | |
tree | 574e857cdb97ac4bb5cd4545b81253a6e5b09ab0 /helix-term/src/editor.rs | |
parent | 88f93399fd4a451f529693269e4154421c8a6d06 (diff) |
various fixes
Diffstat (limited to 'helix-term/src/editor.rs')
-rw-r--r-- | helix-term/src/editor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs index 266c0198..acb742b2 100644 --- a/helix-term/src/editor.rs +++ b/helix-term/src/editor.rs @@ -87,7 +87,7 @@ impl Editor { // TODO: inefficient, should feed chunks.iter() to tree_sitter.parse_with(|offset, pos|) let source_code = view.state.doc().to_string(); - let last_line = view.last_line(viewport); + let last_line = view.last_line(); let range = { // calculate viewport byte ranges @@ -286,7 +286,7 @@ impl Editor { let pos = view.state.selection().cursor(); let pos = view - .screen_coords_at_pos(&view.state.doc().slice(..), pos, area) + .screen_coords_at_pos(&view.state.doc().slice(..), pos) .expect("Cursor is out of bounds."); execute!( |