diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-05 12:12:45 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-05 12:12:45 +0000 |
commit | bbbf07a3e7969edebdb654832056b2d27747a00e (patch) | |
tree | 3428546c2ebbfb1be0581ecd7ae646f944d45492 /Completion | |
parent | ee553c9ec0e8ee3e0c4b8f05a43342ea7bcaa24e (diff) | |
download | zsh-bbbf07a3e7969edebdb654832056b2d27747a00e.tar.gz zsh-bbbf07a3e7969edebdb654832056b2d27747a00e.tar.xz zsh-bbbf07a3e7969edebdb654832056b2d27747a00e.zip |
complete only those single letter options with the right prefix character (13908)
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/Utility/_arguments | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Base/Utility/_arguments b/Completion/Base/Utility/_arguments index 33f4c1e33..1c5411fe3 100644 --- a/Completion/Base/Utility/_arguments +++ b/Completion/Base/Utility/_arguments @@ -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)|:*)}" ) |