Fix scrolling for editor cursor

This commit is contained in:
Joscha 2023-04-18 18:13:25 +02:00
parent ade7be594e
commit 164c02243d

View file

@ -152,7 +152,7 @@ where
// Since the editor was rendered when the `Predrawn` was created, the // Since the editor was rendered when the `Predrawn` was created, the
// last cursor pos is accurate now. // last cursor pos is accurate now.
let cursor_line = self.editor.last_cursor_pos().y; 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 block
} }