diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/_arguments | 5 | ||||
-rw-r--r-- | Completion/User/_bison | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 0d4946285..a948d27e4 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -5,7 +5,7 @@ setopt localoptions extendedglob -local long cmd="$words[1]" descr +local long cmd="$words[1]" descr mesg long=$argv[(I)--] if (( long )); then @@ -189,7 +189,7 @@ if comparguments -i "$compconfig[autodescribe_options]" "$@"; then # An empty action means that we should just display a message. [[ -n "$matched" ]] && compadd -n -Q -S '' -s "$SUFFIX" - "$PREFIX" - _message "$descr" + mesg="$descr" elif [[ "$action" = \(\(*\)\) ]]; then @@ -286,6 +286,7 @@ if comparguments -i "$compconfig[autodescribe_options]" "$@"; then [[ -n "$aret" ]] && return 300 + [[ -n "$mesg" ]] && _message "$mesg" [[ -n "$noargs" ]] && _message "$noargs" # Set the return value. diff --git a/Completion/User/_bison b/Completion/User/_bison index 000235f6f..2fd5b3827 100644 --- a/Completion/User/_bison +++ b/Completion/User/_bison @@ -14,7 +14,7 @@ _arguments -s \ '(--version)-V[show version]' \ '(--help)-h[show help]' \ '(--yacc --fixed-output-file)-y[imitate yacc'"'"'s output file convention]' \ - ':input file:_files -g \*.\(\#i\)\(bison\|yacc\)' \ + ':input file:_files -g \*.\(\#i\)\(bison\|yacc\|y\)' \ -- \ '*=outfile:parser file name:_files' \ '*file-prefix=prefix:output file prefix:' \ |