1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-30 07:10:58 +02: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

@ -1,3 +1,9 @@
2001-04-02 Sven Wischnowsky <wischnow@zsh.org>
* 13868: Src/Zle/compmatch.c, Src/Zle/computil.c: make
`_arguments -S' still complete long options after `--<TAB>';
fix for cursor positioning with partial word match specs
2001-04-02 Clint Adams <schizo@debian.org>
* 13866: Completion/Debian/_apt: complete a release

View file

@ -2076,7 +2076,8 @@ join_clines(Cline o, Cline n)
if ((diff = sub_join(o, n, tn, 0))) {
o->flags = (o->flags & ~CLF_MISS) | of;
if (po) {
if (po && po->prefix &&
cmp_anchors(o, po, 0)) {
po->flags |= CLF_MISS;
po->max += diff;
}

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;