diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-15 13:19:26 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-15 13:19:26 +0000 |
commit | 1dc5677a419456cc23a5e9fa763fc01c35ff1791 (patch) | |
tree | 18cd0867fc321be62d4fc7abdfd7f322f173f474 /Completion/Core/_complete | |
parent | 6ba3ec5ec416f5249dc94674a1ff76846321a25b (diff) | |
download | zsh-1dc5677a419456cc23a5e9fa763fc01c35ff1791.tar.gz zsh-1dc5677a419456cc23a5e9fa763fc01c35ff1791.tar.xz zsh-1dc5677a419456cc23a5e9fa763fc01c35ff1791.zip |
add _in_vared for completion inside vared; make insert-tab default to `false' there
Diffstat (limited to 'Completion/Core/_complete')
-rw-r--r-- | Completion/Core/_complete | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/Completion/Core/_complete b/Completion/Core/_complete index e50f73b2e..83b918135 100644 --- a/Completion/Core/_complete +++ b/Completion/Core/_complete @@ -36,21 +36,7 @@ fi # If we are inside `vared' and we don't have a $compcontext, we treat # this like a parameter assignment. Which it is. -if [[ -n $compstate[vared] ]]; then - if [[ $compstate[vared] = *\[* ]]; then - # vared on an array-element - compstate[parameter]=${compstate[vared]%%\[*} - compstate[context]=value - 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 - else - compstate[context]=value - fi - fi -fi +[[ -n $compstate[vared] ]] && compstate[context]=vared # For arguments and command names we use the `_normal' function. |