Fix subline positioning in Editor::cursor

This commit is contained in:
Héctor Ramón Jiménez 2023-09-12 20:57:46 +02:00
parent 4389ab9865
commit a28ed825c1
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -144,7 +144,7 @@ impl editor::Editor for Editor {
}
})
.unwrap_or((
0,
layout.len().saturating_sub(1),
layout.last().map(|line| line.w).unwrap_or(0.0),
));