aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorgbaranski2021-08-30 18:28:40 +0000
committerNathan Vegdahl2021-08-30 19:03:10 +0000
commitb590504143412f185f02ee21a54ad4e6d966b257 (patch)
tree75d04ed3bdd577ab3ac307b7e2796b0c280d731e /helix-term/src
parent4f8dc4cad862e430927b41e6dbffb22167057161 (diff)
fix: use head instead of anchor for relative line
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/ui/editor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index de0d065e..2c34ae96 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -427,7 +427,7 @@ impl EditorView {
let current_line = doc
.text()
- .char_to_line(doc.selection(view.id).primary().anchor);
+ .char_to_line(doc.selection(view.id).primary().head);
// it's used inside an iterator so the collect isn't needless:
// https://github.com/rust-lang/rust-clippy/issues/6164