]> Trent Huber's Code - thus.git/commitdiff
Arrow key bug fix
authorTrent Huber <trentmhuber@gmail.com>
Sat, 8 Nov 2025 09:41:56 +0000 (04:41 -0500)
committerTrent Huber <trentmhuber@gmail.com>
Sat, 8 Nov 2025 09:41:56 +0000 (04:41 -0500)
src/input.c

index a0940d3a4bed6048bef962c74748f9aa0869e9f2..0e5e906def141db01dfe0f33df86b9473a42687c 100644 (file)
@@ -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();