Skip to content

Commit 83d36c5

Browse files
committed
Revert "zsh: skip repeat Python runs in the same completion run"
This reverts commit 0d55af2. This commit introduced the following regression: > mkdir testdir > touch testdir/FOO > autoload -U compinit > compinit > zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' > : testdir/f<TAB> Expected: testdir/FOO Observed: no completions
1 parent a70ff6a commit 83d36c5

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

argcomplete/bash_completion.d/_python-argcomplete

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ __python_argcomplete_which() {
124124
_python_argcomplete_global() {
125125

126126
if [[ -n "${ZSH_VERSION-}" ]]; then
127-
if [[ "${_matcher_num-}" -gt 1 ]]; then
128-
# Return early if the completer is called multiple times in the same completion run.
129-
# Currently the only known occurrence of this is in zsh when a matcher-list zstyle is declared.
130-
# When this happens, _matcher_num is incremented past 1.
131-
return
132-
fi
133127
# Store result of a regex match in the
134128
# BASH_REMATCH variable rather than MATCH
135129
setopt local_options BASH_REMATCH

argcomplete/shell_integration.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@
3434
local IFS=$'\013'
3535
local script="%(argcomplete_script)s"
3636
if [[ -n "${ZSH_VERSION-}" ]]; then
37-
if [[ "${_matcher_num-}" -gt 1 ]]; then
38-
# Return early if the completer is called multiple times in the same completion run.
39-
# Currently the only known occurrence of this is in zsh when a matcher-list zstyle is declared.
40-
# When this happens, _matcher_num is incremented past 1.
41-
return
42-
fi
4337
local completions
4438
completions=($(IFS="$IFS" \
4539
COMP_LINE="$BUFFER" \

0 commit comments

Comments
 (0)