mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-22 00:21:27 +01:00
complete only those single letter options with the right prefix character (13908)
This commit is contained in:
parent
ee553c9ec0
commit
bbbf07a3e7
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2001-04-05 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 13908: Completion/Base/Utility/_arguments: complete only
|
||||
those single letter options with the right prefix character
|
||||
|
||||
* 13907: Src/params.c: fix for reverse subscripting of strings
|
||||
as second part of subscript ($a[x,(r)..])
|
||||
|
||||
|
|
|
@ -348,6 +348,8 @@ if (( $# )) && comparguments -i "$autod" "$singopt[@]" "$@"; then
|
|||
|
||||
tmp1=( "$next[@]" "$direct[@]" "$odirect[@]" "$equal[@]" )
|
||||
|
||||
[[ "$PREFIX" = [-+]* ]] && tmp1=( "${(@M)tmp1:#${PREFIX[1]}*}" )
|
||||
|
||||
[[ "$single" = next ]] &&
|
||||
tmp1=( "${(@)tmp1:#[-+]${PREFIX[-1]}((#e)|:*)}" )
|
||||
|
||||
|
|
Loading…
Reference in a new issue