1
0
Fork 0
mirror of https://github.com/helix-editor/helix synced 2024-05-17 14:56:05 +02:00

Sync up view size to terminal size for now.

This commit is contained in:
Blaž Hrastnik 2020-09-21 18:25:56 +09:00
parent 935cfeae57
commit 2c3b10dbb0

View File

@ -278,6 +278,7 @@ pub async fn event_loop(&mut self) {
// TODO: simplistic ensure cursor in view for now
if let Some(view) = &mut self.view {
view.size = self.size;
view.ensure_cursor_in_view()
};