summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c
index d020bf6..7975278 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -3898,6 +3898,7 @@ char *console_ui(pixel *vid_buf,char error[255]) { //TODO: error messages, show
if(ci==-1)
{
strcpy(ed.str, "");
+ ed.cursor = strlen(ed.str);
}
else
{
@@ -3910,11 +3911,13 @@ char *console_ui(pixel *vid_buf,char error[255]) { //TODO: error messages, show
currentcommand = currentcommand->prev_command;
}
strcpy(ed.str, currentcommand->command);
+ ed.cursor = strlen(ed.str);
}
else
{
ci = -1;
strcpy(ed.str, "");
+ ed.cursor = strlen(ed.str);
}
}
}