diff options
author | 2008-03-21 09:44:02 +0000 | |
---|---|---|
committer | 2008-03-21 09:44:02 +0000 | |
commit | 77d390dc7061c7f71ee69ed819a4c2aec4779109 (patch) | |
tree | 7c908eecbcac8e9916a4fedd035e2766f80a1c54 /libbb | |
parent | d4394120f747ba99492999bbcb8b2b7edc44ab22 (diff) | |
download | busybox-77d390dc7061c7f71ee69ed819a4c2aec4779109.tar.gz busybox-77d390dc7061c7f71ee69ed819a4c2aec4779109.tar.bz2 |
apply five post-1.9.1 patches
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index c23fe3107..bc64e0305 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -246,7 +246,15 @@ static void input_backward(unsigned num) if (cmdedit_x >= num) { cmdedit_x -= num; if (num <= 4) { - printf("\b\b\b\b" + (4-num)); + /* This is longer by 5 bytes on x86. + * Also gets mysteriously + * miscompiled for some ARM users. + * printf(("\b\b\b\b" + 4) - num); + * return; + */ + do { + bb_putchar('\b'); + } while (--num); return; } printf("\033[%uD", num); |