mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 19:58:12 +03:00
fix: use head instead of anchor for relative line
This commit is contained in:
parent
4f8dc4cad8
commit
b590504143
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user