lineedit: simplify code a bit
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 28 Nov 2016 00:10:16 +0000 (01:10 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 28 Nov 2016 00:10:16 +0000 (01:10 +0100)
commit038a977d47c99c3e59d7a2393799b2afa838604c
treee10b303c2b43ad808a3d9d5ace3cab3307350a92
parent2c769c69b269f43d8c9ecf4a7f5ce5cce290750a
lineedit: simplify code a bit

function                                             old     new   delta
lineedit_read_key                                    155     162      +7
put_prompt                                            51      46      -5
read_line_input                                     3722    3715      -7
cmdedit_setwidth                                      81      50     -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 7/-43)             Total: -36 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/lineedit.c