summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 72a1786ff..bc089ab1c 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -466,7 +466,7 @@ static void input_backward(unsigned num)
466 cmdedit_x = w * count_y - num; 466 cmdedit_x = w * count_y - num;
467 } 467 }
468 /* go to 1st column; go up; go to correct column */ 468 /* go to 1st column; go up; go to correct column */
469 printf("\r" "\033[%dA" "\033[%dC", count_y, cmdedit_x); 469 printf("\r" "\033[%uA" "\033[%uC", count_y, cmdedit_x);
470} 470}
471 471
472static void put_prompt(void) 472static void put_prompt(void)