about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index da28b76..12c8541 100644
--- a/ui.c
+++ b/ui.c
@@ -220,10 +220,11 @@ void uiDraw(void) {
 		1, 0,
 		BOTTOM - 1, RIGHT
 	);
-	// TODO: Input scrolling.
+	int y, x;
+	getyx(input, y, x);
 	pnoutrefresh(
 		input,
-		0, 0,
+		0, (x > RIGHT ? x - RIGHT : 0),
 		BOTTOM, 0,
 		BOTTOM, RIGHT
 	);
b27171ddb9de00edb0415ea3879a81f&follow=1'>Add init function to fb interfaceJune McEnroe 2018-01-28Add color.cJune McEnroe