about summary refs log tree commit diff
path: root/Src/Zle/compcore.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-07-01 08:25:15 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-07-01 08:25:15 +0000
commit053629183d8075c5bd122c9767f0b4f8bf8be870 (patch)
tree7285316b73b6f649e1febcebc30be0c4fdfa3e0b /Src/Zle/compcore.c
parent6278159f6dc177bdfd6a18779b081198d47a9a80 (diff)
downloadzsh-053629183d8075c5bd122c9767f0b4f8bf8be870.tar.gz
zsh-053629183d8075c5bd122c9767f0b4f8bf8be870.tar.xz
zsh-053629183d8075c5bd122c9767f0b4f8bf8be870.zip
add new sepcial context -assign-parameter- for completing the parameter in an assignment (17387)
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r--Src/Zle/compcore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index fbf1339f1..e0aef2864 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -553,6 +553,8 @@ callcompfunc(char *s, char *fn)
 	compparameter = compredirect = "";
 	if (ispar)
 	    compcontext = (ispar == 2 ? "brace_parameter" : "parameter");
+        else if (linwhat == IN_PAR)
+            compcontext = "assign_parameter";
 	else if (linwhat == IN_MATH) {
 	    if (insubscr) {
 		compcontext = "subscript";