diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-24 01:25:05 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-24 01:25:05 +0200 |
commit | 1336052a490ffe7a3790ee3c1366756ca8a7f5ca (patch) | |
tree | 356b156823dfbc374a73d1df8ef63816004ba672 /libbb | |
parent | 5ccb0e92faf90e1e9125da434b9c37e85d0aaf28 (diff) | |
download | busybox-w32-1336052a490ffe7a3790ee3c1366756ca8a7f5ca.tar.gz busybox-w32-1336052a490ffe7a3790ee3c1366756ca8a7f5ca.tar.bz2 busybox-w32-1336052a490ffe7a3790ee3c1366756ca8a7f5ca.zip |
lineedit: fix completion with applet names. closes 9361
Patch by Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 3bfff0084..2cc61db40 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -782,7 +782,7 @@ static NOINLINE unsigned complete_cmd_dir_file(const char *command, int type) | |||
782 | pf_len = strlen(pfind); | 782 | pf_len = strlen(pfind); |
783 | 783 | ||
784 | #if ENABLE_FEATURE_SH_STANDALONE && NUM_APPLETS != 1 | 784 | #if ENABLE_FEATURE_SH_STANDALONE && NUM_APPLETS != 1 |
785 | if (type == FIND_EXE_ONLY) { | 785 | if (type == FIND_EXE_ONLY && !dirbuf) { |
786 | const char *p = applet_names; | 786 | const char *p = applet_names; |
787 | 787 | ||
788 | while (*p) { | 788 | while (*p) { |