From 35d4da0fb5884236fa7a131a13416268239c9e69 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 22 Jan 2007 14:04:27 +0000 Subject: exterminate u_intXXX. fix ping6 buglet (memset is too short), minor sync between ping and ping6 --- libbb/lineedit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbb') diff --git a/libbb/lineedit.c b/libbb/lineedit.c index e62975db3..2c849eb74 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); } -- cgit v1.2.3