Skip to content

Commit

Permalink
fix(make): deactivate the display-only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 17, 2022
1 parent 04aa820 commit d21ebba
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions completions/make
Expand Up @@ -157,12 +157,19 @@ _make()
fi
done

# recognise that possible completions are only going to be displayed
# so only the base name is shown
# recognise that possible completions are only going to be displayed so
# only the base name is shown.
#
# Note: This is currently turned off because the test suite of
# bash-completion conflicts with it; it uses "set show-all-if-ambiguous
# on" (causing COMP_TYPE == 37) to retrieve the action completion
# results, and also the compact form with only the basenames is not
# essentially needed. To re-enable it, please uncomment the following
# if-statement.
local mode=--
if ((COMP_TYPE != 9 && COMP_TYPE != 37 && COMP_TYPE != 42)); then
mode=-d # display-only mode
fi
# if ((COMP_TYPE != 9 && COMP_TYPE != 37 && COMP_TYPE != 42)); then
# mode=-d # display-only mode
# fi

local IFS=$' \t\n' script=$(_make_target_extract_script $mode "$cur")
COMPREPLY=($(LC_ALL=C \
Expand Down

0 comments on commit d21ebba

Please sign in to comment.