diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:23:21 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:23:21 +0000 |
commit | 1bb11adee91f6d2fadb3120e1a3cd98440e535db (patch) | |
tree | cf6a6086a00aa24df1a3f0800d72087aa240acee /Completion/Base/_in_vared | |
parent | 89583f9fd1b8a987d1c17b787cb69a307ad80d33 (diff) | |
download | zsh-1bb11adee91f6d2fadb3120e1a3cd98440e535db.tar.gz zsh-1bb11adee91f6d2fadb3120e1a3cd98440e535db.tar.xz zsh-1bb11adee91f6d2fadb3120e1a3cd98440e535db.zip |
moved to Completion/Zsh/Context/_in_vared
Diffstat (limited to 'Completion/Base/_in_vared')
-rwxr-xr-x | Completion/Base/_in_vared | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Completion/Base/_in_vared b/Completion/Base/_in_vared deleted file mode 100755 index c21601cdf..000000000 --- a/Completion/Base/_in_vared +++ /dev/null @@ -1,35 +0,0 @@ -#compdef -vared- - -local also - -# Completion inside vared. - -if [[ $compstate[vared] = *\[* ]]; then - if [[ $compstate[vared] = *\]* ]]; then - # vared on an array-element - compstate[parameter]=${${compstate[vared]%%\]*}//\[/-} - compstate[context]=value - also=-value- - else - # vared on an array-value - compstate[parameter]=${compstate[vared]%%\[*} - compstate[context]=value - also=-value- - fi -else - # vared on a parameter, let's see if it is an array - compstate[parameter]=$compstate[vared] - if [[ ${(tP)compstate[vared]} = *(array|assoc)* ]]; then - compstate[context]=array_value - also=-array-value- - else - compstate[context]=value - also=-value- - fi -fi - -# Don't insert TAB in first column. Never. - -compstate[insert]="${compstate[insert]//tab /}" - -_compalso "$also" |