on master help sign in
fix: use head instead of anchor for relative line
b590504gbaranski
helix-term/src/ui/editor.rs+1−1
@@ -427,7 +427,7 @@ impl EditorView {
427
427
428 let current_line = doc
428 let current_line = doc
429 .text()
429 .text()
430− .char_to_line(doc.selection(view.id).primary().anchor);
430+ .char_to_line(doc.selection(view.id).primary().head);
431
431
432 // it's used inside an iterator so the collect isn't needless:
432 // it's used inside an iterator so the collect isn't needless:
433 // https://github.com/rust-lang/rust-clippy/issues/6164
433 // https://github.com/rust-lang/rust-clippy/issues/6164