diff options
author | Peter Stephenson <pws@zsh.org> | 2016-09-29 14:19:07 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2016-09-29 14:19:17 +0100 |
commit | 99f74d6c0ac76910e45435dc69a3441415721a01 (patch) | |
tree | 5518a6c50fffa2e3cf6b1378af9a369ec08db3bc /Src/Zle/zle_tricky.c | |
parent | 07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4 (diff) | |
download | zsh-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/zle_tricky.c')
-rw-r--r-- | Src/Zle/zle_tricky.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 958e79ffb..c8d3bb35b 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -709,7 +709,8 @@ docomplete(int lst) for (t0 = cmdnamtab->hsize - 1; t0 >= 0; t0--) for (hn = cmdnamtab->nodes[t0]; hn; hn = hn->next) { - if (strpfx(q, hn->nam) && findcmd(hn->nam, 0)) + if (strpfx(q, hn->nam) && + findcmd(hn->nam, 0, 0)) n++; if (n == 2) break; @@ -3027,7 +3028,7 @@ expandcmdpath(UNUSED(char **args)) return 1; } - str = findcmd(s, 1); + str = findcmd(s, 1, 0); zsfree(s); if (!str) return 1; |