commit | 1336052a490ffe7a3790ee3c1366756ca8a7f5ca | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Mon Oct 24 01:25:05 2016 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Mon Oct 24 01:25:05 2016 +0200 |
tree | 356b156823dfbc374a73d1df8ef63816004ba672 | |
parent | 5ccb0e92faf90e1e9125da434b9c37e85d0aaf28 [diff] |
lineedit: fix completion with applet names. closes 9361 Patch by Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 3bfff00..2cc61db 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c
@@ -782,7 +782,7 @@ pf_len = strlen(pfind); #if ENABLE_FEATURE_SH_STANDALONE && NUM_APPLETS != 1 - if (type == FIND_EXE_ONLY) { + if (type == FIND_EXE_ONLY && !dirbuf) { const char *p = applet_names; while (*p) {