diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2019-01-05 13:25:18 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2019-01-05 13:25:18 +0100 |
commit | 7e6a3d73413ad665a87cecf39d1dd05a91c1a31e (patch) | |
tree | 6e826685afbd476b340d311d2c08af12b3e81a8e /Src/Zle/compctl.c | |
parent | feaf8570c138e4372ae9517f1f5658ae74640c41 (diff) | |
parent | 325fceab3b4ffa871777bacc420e0e8efcb0afb9 (diff) | |
download | zsh-7e6a3d73413ad665a87cecf39d1dd05a91c1a31e.tar.gz zsh-7e6a3d73413ad665a87cecf39d1dd05a91c1a31e.zip |
New upstream release candidate 5.6.2-test-3
Merge branch 'upstream' at 'zsh-5.6.2-test-3' into branch debian
Diffstat (limited to 'Src/Zle/compctl.c')
-rw-r--r-- | Src/Zle/compctl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index 87d13afc1..fe87409cb 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -3256,6 +3256,15 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) rpl = strlen(rpre); rsl = strlen(rsuf); } + else + { + for (p = rpre; *p; ++p) + if (*p == Dash) + *p = '-'; + for (p = rsuf; *p; ++p) + if (*p == Dash) + *p = '-'; + } untokenize(lpre); untokenize(lsuf); |