diff options
author | gbaranski | 2021-08-30 18:49:17 +0000 |
---|---|---|
committer | Nathan Vegdahl | 2021-08-30 19:03:10 +0000 |
commit | 9c5752cbac2450388ff4c94dfa82b389b3746a9c (patch) | |
tree | cfb942a818c57699b1085553e1aac128039f69ce | |
parent | b590504143412f185f02ee21a54ad4e6d966b257 (diff) |
fix: use .cursor() instead of .head
-rw-r--r-- | helix-term/src/ui/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 2c34ae96..4b9c56e7 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().head); + .char_to_line(doc.selection(view.id).primary().cursor(text)); // it's used inside an iterator so the collect isn't needless: // https://github.com/rust-lang/rust-clippy/issues/6164 |