lineedit: fix completion with applet names. closes 9361

Patch by Ron Yorston <rmy@pobox.com>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2016-10-24 01:25:05 +02:00
parent 5ccb0e92fa
commit 1336052a49

View File

@ -782,7 +782,7 @@ static NOINLINE unsigned complete_cmd_dir_file(const char *command, int type)
pf_len = strlen(pfind); pf_len = strlen(pfind);
#if ENABLE_FEATURE_SH_STANDALONE && NUM_APPLETS != 1 #if ENABLE_FEATURE_SH_STANDALONE && NUM_APPLETS != 1
if (type == FIND_EXE_ONLY) { if (type == FIND_EXE_ONLY && !dirbuf) {
const char *p = applet_names; const char *p = applet_names;
while (*p) { while (*p) {