1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-13 13:41:01 +02:00

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> 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 * 27429: Completion/Unix/Command/_make: restore variable value
completion. Also make indentation more standard (not posted). completion. Also make indentation more standard (not posted).
@ -12390,5 +12393,5 @@
***************************************************** *****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL * 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
fi fi
if [[ $PREFIX == (#b)([^=]##)'='* ]] && [[ -n ${${(k)VARIABLES}[(r)${match[1]}]} ]] if [[ $PREFIX == *'='* ]]
then then
# Complete make variable as if shell variable # Complete make variable as if shell variable
compstate[parameter]="${PREFIX%%\=*}" compstate[parameter]="${PREFIX%%\=*}"