1
0
mirror of https://github.com/helix-editor/helix synced 2024-11-10 10:34:45 +01:00

fix: use .cursor() instead of .head

This commit is contained in:
gbaranski 2021-08-30 20:49:17 +02:00 committed by Nathan Vegdahl
parent b590504143
commit 9c5752cbac

@ -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