diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-22 12:35:20 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-22 12:35:20 +0000 |
commit | d139ae56432a82a3dbe11f4be89ba7d886f2c177 (patch) | |
tree | f2cd4d874fe13fe923490dd69bd92a0fb3314381 /Completion/Core/_sep_parts | |
parent | fdb8d5b45550835c00f40591e6ee5b6f6f6fd868 (diff) | |
download | zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.tar.gz zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.tar.xz zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.zip |
zsh-3.1.6-pws-5 zsh-3.1.6-pws-5
Diffstat (limited to 'Completion/Core/_sep_parts')
-rw-r--r-- | Completion/Core/_sep_parts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Core/_sep_parts b/Completion/Core/_sep_parts index 6f2595120..0a8cae28f 100644 --- a/Completion/Core/_sep_parts +++ b/Completion/Core/_sep_parts @@ -18,7 +18,7 @@ # `-X explanation' options. local str arr sep test testarr tmparr prefix suffixes matchers autosuffix -local matchflags opt group expl nm=$compstate[nmatches] +local matchflags opt group expl nm=$compstate[nmatches] opre osuf # Get the options. @@ -34,6 +34,8 @@ shift OPTIND-1 # Get the string from the line. +opre="$PREFIX" +osuf="$SUFFIX" str="$PREFIX$SUFFIX" SUFFIX="" prefix="" @@ -144,6 +146,8 @@ done # Add the matches for each of the suffixes. +PREFIX="$pre" +SUFFIX="$suf" for i in "$suffixes[@]"; do compadd -U "$group[@]" "$expl[@]" "$matchers[@]" "$autosuffix[@]" \ -i "$IPREFIX" -I "$ISUFFIX" -p "$prefix" -s "$i" - "$testarr[@]" |