From: Trent Huber Date: Sat, 8 Nov 2025 09:41:56 +0000 (-0500) Subject: Arrow key bug fix X-Git-Url: https://trenthuber.com/code?a=commitdiff_plain;h=b20a4f1456e7d9aa4710db7eef29d72a6d3c40d8;p=thus.git Arrow key bug fix --- diff --git a/src/input.c b/src/input.c index a0940d3..0e5e906 100644 --- a/src/input.c +++ b/src/input.c @@ -221,6 +221,8 @@ int userinput(struct context *c) { cursor = oldcursor; while (cursor != start) moveleft(); + putchar('\r'); + prompt(); while (cursor < end || cursor < oldend) moveright(); while (cursor != end) moveleft();