Skip to content
Myr

fix zsh completion loaded from fpath

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 850bffe · Browse files · 2 files+8 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−1 removed

  • other:+8 added−1 removed

2 files+8 added−1 removed

modified:src/click/shell_completion.py+7 added-1 removed
155 unmodified lines
156 compadd -U -V unsorted -a completions157 fi158}159160if [[ $zsh_eval_context[-1] == loadautofunc ]]; then161 # autoload from fpath, call function directly162 %(complete_func)s "$@"163else164 # eval/source/. command, register function for later160compdef %(complete_func)s %(prog_name)s;165 compdef %(complete_func)s %(prog_name)s166fi167"""168169_SOURCE_FISH = """\170function %(complete_func)s
422 unmodified lines
modified:CHANGES.rst+1 added
15 unmodified lines
16- Improve type annotations for pyright type checker. :issue:`2268`17- Improve responsiveness of ``click.clear()``. :issue:`2284`18- Improve command name detection when using Shiv or PEX. :issue:`2332`19- Avoid showing empty lines if command help text is empty. :issue:`2368`20- ZSH completion script works when loaded from ``fpath``. :issue:`2344`.212223Version 8.1.324-------------
1040 unmodified lines