[git commit] lineedit: fix completion with applet names. closes 9361
Denys Vlasenko
vda.linux at googlemail.com
Sun Oct 23 23:25:05 UTC 2016
commit: https://git.busybox.net/busybox/commit/?id=1336052a490ffe7a3790ee3c1366756ca8a7f5ca
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Patch by Ron Yorston <rmy at pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
libbb/lineedit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@ static NOINLINE unsigned complete_cmd_dir_file(const char *command, int type)
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) {
More information about the busybox-cvs
mailing list