mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 16:40:29 +01:00
38707: strip suffix for glob qualifier completion
This commit is contained in:
parent
bce43df70d
commit
2f67cd514f
4 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue