diff options
| author | jacksonmj <jacksonmj@jacksonmj.none> | 2011-01-31 02:25:55 (GMT) |
|---|---|---|
| committer | jacksonmj <jacksonmj@jacksonmj.none> | 2011-01-31 02:25:55 (GMT) |
| commit | f85ef31b1f9b643e04a5e4614a26dd27332ced19 (patch) | |
| tree | fd549d5491f8056f49536458bf1b0ffa23f6cd8d /src/interface.c | |
| parent | e2b916a91fcd0563853e45a8a8c509d63876e8e5 (diff) | |
| parent | 61292f5355bb85b3e6e293c5c5b0a2de10d0cd2d (diff) | |
| download | powder-f85ef31b1f9b643e04a5e4614a26dd27332ced19.zip powder-f85ef31b1f9b643e04a5e4614a26dd27332ced19.tar.gz | |
Merge branch 'upstream' into dev
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 3 |
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); } } } |
