Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

compstate[context]



When a completion is attempt after "A='", compstate[context] become
"command".

Z:akr@is27e1u11% Src/zsh -f      
is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% set -x
is27e1u11% A='<TAB>
...
+_complete:33> [[ command == command ]]
...

# Note that the line 33 of _complete is:
#  if [[ "$compstate[context]" = command ]]; then

I think it should be "value".
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author