aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 778511d16..4f68547eb 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -926,7 +926,7 @@ static NOINLINE unsigned complete_cmd_dir_file(const char *command, int type)
926# if ENABLE_FEATURE_SH_STANDALONE && NUM_APPLETS != 1 926# if ENABLE_FEATURE_SH_STANDALONE && NUM_APPLETS != 1
927 const char *p = applet_names; 927 const char *p = applet_names;
928 while (*p) { 928 while (*p) {
929 if (strncmp(basecmd, p, baselen) == 0) 929 if (strncmp(basecmd, p, baselen) == 0 && is_applet_preferred(p))
930 add_match(xstrdup(p)); 930 add_match(xstrdup(p));
931 while (*p++ != '\0') 931 while (*p++ != '\0')
932 continue; 932 continue;