summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-11-24 11:04:25 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-11-24 11:04:25 +0000
commitd81fb9f1a899e5b82814bf1f4fa488df91382bbf (patch)
tree8161da4565acf04e3a47fa89ceaa199c4af0eb8a
parent85842387f859c8b84b5f785fa8fce80983913e12 (diff)
downloadzsh-d81fb9f1a899e5b82814bf1f4fa488df91382bbf.tar.gz
zsh-d81fb9f1a899e5b82814bf1f4fa488df91382bbf.tar.xz
zsh-d81fb9f1a899e5b82814bf1f4fa488df91382bbf.zip
27430: extend make variable value completion
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_make2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e2f3ed63..9f05d22ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 $
 *****************************************************
diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index ec675aaf2..f0d208837 100644
--- a/Completion/Unix/Command/_make
+++ b/Completion/Unix/Command/_make
@@ -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%%\=*}"