Fix subline positioning in Editor::cursor
This commit is contained in:
parent
4389ab9865
commit
a28ed825c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue