about summary refs log tree commit diff
path: root/Src/Zle/compctl.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-09-29 14:19:07 +0100
committerPeter Stephenson <pws@zsh.org>2016-09-29 14:19:17 +0100
commit99f74d6c0ac76910e45435dc69a3441415721a01 (patch)
tree5518a6c50fffa2e3cf6b1378af9a369ec08db3bc /Src/Zle/compctl.c
parent07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4 (diff)
downloadzsh-99f74d6c0ac76910e45435dc69a3441415721a01.tar.gz
zsh-99f74d6c0ac76910e45435dc69a3441415721a01.tar.xz
zsh-99f74d6c0ac76910e45435dc69a3441415721a01.zip
unposted: Update findcmd() in Zle.
Unfinished business from previous patch.
Diffstat (limited to 'Src/Zle/compctl.c')
-rw-r--r--Src/Zle/compctl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index c2da2977f..09e590569 100644
--- a/Src/Zle/compctl.c
+++ b/Src/Zle/compctl.c
@@ -1965,7 +1965,7 @@ addmatch(char *s, char *t)
 	if (!ms)
 	    return;
 
-	if (addwhat == -7 && !findcmd(s, 0))
+	if (addwhat == -7 && !findcmd(s, 0, 0))
 	    return;
 	isfile = CMF_FILE;
     } else if (addwhat == CC_QUOTEFLAG || addwhat == -2  ||
@@ -2469,7 +2469,7 @@ makecomplistcmd(char *os, int incmd, int flags)
     /* If the command string starts with `=', try the path name of the *
      * command. */
     if (cmdstr && cmdstr[0] == Equals) {
-	char *c = findcmd(cmdstr + 1, 1);
+	char *c = findcmd(cmdstr + 1, 1, 0);
 
 	if (c) {
 	    zsfree(cmdstr);
@@ -2509,7 +2509,8 @@ makecomplistpc(char *os, int incmd)
     int ret = 0;
 
     s = ((shfunctab->getnode(shfunctab, cmdstr) ||
-	  builtintab->getnode(builtintab, cmdstr)) ? NULL : findcmd(cmdstr, 1));
+	  builtintab->getnode(builtintab, cmdstr)) ? NULL :
+	 findcmd(cmdstr, 1, 0));
 
     for (pc = patcomps; pc; pc = pc->next) {
 	if ((pat = patcompile(pc->pat, PAT_STATIC, NULL)) &&