yterm

commit e568811178f7de4d9b67e3db35ad72c654800e4e

Author: mesyeti <mesyeti@mesyeti.uk>

fix issues introduced by scrolling

 source/terminal.c | 6 ++++--


diff --git a/source/terminal.c b/source/terminal.c
index 72b8a652fd76b598895f6700656a4cdd3bfc934e..7bf0e0e78e2c415d8ef34d999e06bb2fae98533a 100644
--- a/source/terminal.c
+++ b/source/terminal.c
@@ -57,6 +57,8 @@ 	}
 }
 
 void Terminal_Resize(Terminal* terminal, int w, int h) {
-	Buffer_Resize(&terminal->buffer,    w, h);
-	SysTerm_UpdateSize(&terminal->term, w, h);
+	terminal->height = h;
+
+	Buffer_Resize(&terminal->buffer,    w, terminal->buffer.height);
+	SysTerm_UpdateSize(&terminal->term, w, terminal->buffer.height);
 }