diff options
| author | Oliver Kiddle <opk@zsh.org> | 2016-06-18 00:15:11 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2016-06-18 00:15:11 +0200 |
| commit | 2f67cd514fef304ac40d49e5bb9c40bcee31664a (patch) | |
| tree | 36d281ae2af7dc2a5d00c8be3f3afeb9b40c2b77 /Completion/Unix | |
| parent | 38703: support su options on macOS (diff) | |
| download | zsh-2f67cd514fef304ac40d49e5bb9c40bcee31664a.tar zsh-2f67cd514fef304ac40d49e5bb9c40bcee31664a.tar.gz zsh-2f67cd514fef304ac40d49e5bb9c40bcee31664a.tar.bz2 zsh-2f67cd514fef304ac40d49e5bb9c40bcee31664a.tar.lz zsh-2f67cd514fef304ac40d49e5bb9c40bcee31664a.tar.xz zsh-2f67cd514fef304ac40d49e5bb9c40bcee31664a.tar.zst zsh-2f67cd514fef304ac40d49e5bb9c40bcee31664a.zip | |
38707: strip suffix for glob qualifier completion
Diffstat (limited to 'Completion/Unix')
| -rw-r--r-- | Completion/Unix/Type/_files | 1 | ||||
| -rw-r--r-- | Completion/Unix/Type/_path_files | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files index fe0780a57..69878242f 100644 --- a/Completion/Unix/Type/_files +++ b/Completion/Unix/Type/_files @@ -7,6 +7,7 @@ local ret=1 # we don't want to complete them multiple times (for each file pattern). if _have_glob_qual $PREFIX; then compset -p ${#match[1]} + compset -S '[^\)\|\~]#(|\))' if [[ $_comp_caller_options[extendedglob] == on ]] && compset -P '\#'; then _globflags && ret=0 else diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 14c4cc753..6a1e89f05 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -17,6 +17,7 @@ local -a match mbegin mend if _have_glob_qual $PREFIX; then local ret=1 compset -p ${#match[1]} + compset -S '[^\)\|\~]#(|\))' if [[ $_comp_caller_options[extendedglob] == on ]] && compset -P '\#'; then _globflags && ret=0 else |
