diff options
author | Oliver Kiddle <opk@zsh.org> | 2017-11-04 00:57:48 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2017-11-04 00:57:48 +0100 |
commit | 1bfcff129d27314d2b5b08117a61e67912fafc2d (patch) | |
tree | 0fca417416df265a14c6e4743dc9aa4fe9dcd79a /Src/Zle | |
parent | 5498e0cb9e88729162015934dde8318038afee88 (diff) | |
download | zsh-1bfcff129d27314d2b5b08117a61e67912fafc2d.tar.gz zsh-1bfcff129d27314d2b5b08117a61e67912fafc2d.tar.xz zsh-1bfcff129d27314d2b5b08117a61e67912fafc2d.zip |
41983: fix exclusion of long options with (-) on a normal argument
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/computil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 70cea9f27..71d61563b 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -2080,7 +2080,7 @@ ca_parse_line(Cadef d, Cadef all, int multi, int first) remnulargs(line); untokenize(line); - ca_inactive(d, argxor, cur, 0); + ca_inactive(d, argxor, cur - 1, 0); if ((d->flags & CDF_SEP) && cur != compcurrent && !strcmp(line, "--")) { ca_inactive(d, NULL, cur, 1); continue; |