1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-29 03:31:01 +01:00

make _arguments -S' still complete long options after --<TAB>'; fix for cursor positioning with partial word match specs (13868)

This commit is contained in:
Sven Wischnowsky 2001-04-02 09:05:47 +00:00
parent 9475938761
commit c05a2d2093
3 changed files with 9 additions and 2 deletions

View file

@ -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;