fix: use .cursor() instead of .head
This commit is contained in:
parent
b590504143
commit
9c5752cbac
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ impl EditorView {
|
||||||
|
|
||||||
let current_line = doc
|
let current_line = doc
|
||||||
.text()
|
.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:
|
// it's used inside an iterator so the collect isn't needless:
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/6164
|
// https://github.com/rust-lang/rust-clippy/issues/6164
|
||||||
|
|
Loading…
Reference in a new issue