diff options
author | Denis Vlasenko | 2007-01-22 14:04:27 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-22 14:04:27 +0000 |
commit | 35d4da0fb5884236fa7a131a13416268239c9e69 (patch) | |
tree | 1598327194a13be915980de0cb8be6a84e5c362c /libbb/lineedit.c | |
parent | 85629f08bcea5d4a44b6d511422fd608bbc3fc45 (diff) | |
download | busybox-35d4da0fb5884236fa7a131a13416268239c9e69.zip busybox-35d4da0fb5884236fa7a131a13416268239c9e69.tar.gz |
exterminate u_intXXX.
fix ping6 buglet (memset is too short), minor sync between ping and ping6
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index e62975d..2c849eb 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -171,7 +171,7 @@ static void input_backward(unsigned num) if (cmdedit_x >= num) { cmdedit_x -= num; if (num <= 4) { - do putchar('\b'); while (--num); + printf("\b\b\b\b" + (4-num)); return; } printf("\033[%uD", num); @@ -183,7 +183,7 @@ static void input_backward(unsigned num) count_y = 1 + (num / cmdedit_termw); cmdedit_y -= count_y; cmdedit_x = cmdedit_termw * count_y - num; - /* go to 1st col; go up; go to correct column */ + /* go to 1st column; go up; go to correct column */ printf("\r" "\033[%dA" "\033[%dC", count_y, cmdedit_x); } |