diff options
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 13cbb3229..ee494e013 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -979,8 +979,7 @@ static NOINLINE unsigned complete_cmd_dir_file(const char *command, int type) | |||
979 | state->path_lookup : NULL; | 979 | state->path_lookup : NULL; |
980 | # endif | 980 | # endif |
981 | while (*p) { | 981 | while (*p) { |
982 | if (strncmp(basecmd, p, baselen) == 0 && | 982 | if (strncmp(basecmd, p, baselen) == 0 && prefer_applet(p, shpath)) |
983 | is_applet_preferred(p, shpath)) | ||
984 | add_match(xstrdup(p), TRUE); | 983 | add_match(xstrdup(p), TRUE); |
985 | while (*p++ != '\0') | 984 | while (*p++ != '\0') |
986 | continue; | 985 | continue; |