Skip to content

Commit

Permalink
Call _default as a fallback in zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Nov 2, 2023
1 parent 4366484 commit afdf75b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion argcomplete/bash_completion.d/_python-argcomplete
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ _python_argcomplete_global() {
req_argv=( "" "${COMP_WORDS[@]:1}" )
__python_argcomplete_expand_tilde_by_ref executable
else
# TODO: check if we should call _default or use a different condition here
if [[ "$service" != "-default-" ]]; then
# TODO: this may not be sufficient - see https://zsh.sourceforge.io/Doc/Release/Completion-System.html
# May need to call _complete with avoid-completer=_python-argcomplete or something like that
_default
return
fi
executable="${words[1]}"
Expand Down

0 comments on commit afdf75b

Please sign in to comment.