diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2019-06-20 11:13:05 +0100 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2019-06-20 11:13:05 +0100 |
commit | b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf (patch) | |
tree | 360211057d08021d5e1e7291e5d81d4d9ba2bf76 /Src/Zle/compctl.c | |
parent | 80aa807a61cf10ebf459ba8e06621a5ec33041dc (diff) | |
download | zsh-b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf.tar.gz zsh-b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf.tar.xz zsh-b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf.zip |
44435: Handling digita arguments for :h and :t.
Pick number of leading or trailing path components to substitute. Active in history, brace parameters, glob qualifiers. Add tests for all three environments.
Diffstat (limited to 'Src/Zle/compctl.c')
-rw-r--r-- | Src/Zle/compctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index f963d5712..f242e1b28 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -2511,7 +2511,7 @@ makecomplistcmd(char *os, int incmd, int flags) else if (!(cmdstr && (((ccp = (Compctlp) compctltab->getnode(compctltab, cmdstr)) && (cc = ccp->cc)) || - ((s = dupstring(cmdstr)) && remlpaths(&s) && + ((s = dupstring(cmdstr)) && remlpaths(&s, 1) && (ccp = (Compctlp) compctltab->getnode(compctltab, s)) && (cc = ccp->cc))))) { if (flags & CFN_DEFAULT) |