aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/editor.rs4
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!(