lineedit: fix tab-completion of filenames with spaces
authorMike Shal <marfey@gmail.com>
Mon, 22 Nov 2010 02:49:18 +0000 (03:49 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 22 Nov 2010 02:49:18 +0000 (03:49 +0100)
commitf3763033e457b100a863731c16a80648d85995c9
tree0910f9751c6c750f3725438ec8f24f2a88b0bea6
parent7c6ed78aaa6f7252212869ab576eae1559645a3e
lineedit: fix tab-completion of filenames with spaces

Using ash in busybox git version dea28e1e, tab completion doesn't seem
to work properly for filenames that have special characters (such as
spaces) in them. For example, with filenames "foo bar" and "foo zap",
typing "ls fo<TAB>" correctly expands to "ls foo\ ", but then
continuing to type "b<TAB>" will produce "ls foo\ bbar", which is not
correct (the 'b' is duplicated).

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