summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-11-04 00:57:48 +0100
committerOliver Kiddle <opk@zsh.org>2017-11-04 00:57:48 +0100
commit1bfcff129d27314d2b5b08117a61e67912fafc2d (patch)
tree0fca417416df265a14c6e4743dc9aa4fe9dcd79a /Src/Zle
parent5498e0cb9e88729162015934dde8318038afee88 (diff)
downloadzsh-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.c2
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;