From d21ebba8a0a1da2ea3a2c445c867ff32790fb8f6 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sun, 18 Dec 2022 03:03:57 +0900 Subject: [PATCH] fix(make): deactivate the display-only mode --- completions/make | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/completions/make b/completions/make index cb4bafc371f..ebc2b1d8e36 100644 --- a/completions/make +++ b/completions/make @@ -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 \