Fix scrolling for editor cursor
This commit is contained in:
parent
ade7be594e
commit
164c02243d
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ where
|
|||
// Since the editor was rendered when the `Predrawn` was created, the
|
||||
// last cursor pos is accurate now.
|
||||
let cursor_line = self.editor.last_cursor_pos().y;
|
||||
block.set_focus(Range::new(cursor_line, cursor_line));
|
||||
block.set_focus(Range::new(cursor_line, cursor_line + 1));
|
||||
|
||||
block
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue