From c05a2d20937b2fee0b54adcbdc76d134a8d3f7a9 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 09:05:47 +0000 Subject: make `_arguments -S' still complete long options after `--'; fix for cursor positioning with partial word match specs (13868) --- Src/Zle/computil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/computil.c') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 063ad4c2f..90714f5fe 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1316,7 +1316,7 @@ ca_parse_line(Cadef d, int multi, int first) doff = state.singles = arglast = 0; if (ca_inactive(d, argxor, cur, 0) || - ((d->flags & CDF_SEP) && !strcmp(line, "--"))) { + ((d->flags & CDF_SEP) && cur != compcurrent && !strcmp(line, "--"))) { if (ca_inactive(d, NULL, cur, 1)) return 1; continue; -- cgit 1.4.1