27430: extend make variable value completion

This commit is contained in:
Peter Stephenson 2009-11-24 11:04:25 +00:00
parent 85842387f8
commit d81fb9f1a8
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2009-11-24 Peter Stephenson <pws@csr.com>
* 27430: Completion/Unix/Command/_make: extend variable value
completion to anything that looks like an assignment.
* 27429: Completion/Unix/Command/_make: restore variable value
completion. Also make indentation more standard (not posted).
@ -12390,5 +12393,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4822 $
* $Revision: 1.4823 $
*****************************************************

View File

@ -197,7 +197,7 @@ else
fi
fi
if [[ $PREFIX == (#b)([^=]##)'='* ]] && [[ -n ${${(k)VARIABLES}[(r)${match[1]}]} ]]
if [[ $PREFIX == *'='* ]]
then
# Complete make variable as if shell variable
compstate[parameter]="${PREFIX%%\=*}"