From 1336052a490ffe7a3790ee3c1366756ca8a7f5ca Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 24 Oct 2016 01:25:05 +0200 Subject: lineedit: fix completion with applet names. closes 9361 Patch by Ron Yorston Signed-off-by: Denys Vlasenko --- libbb/lineedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/lineedit.c') 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) 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) { -- cgit v1.2.3