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:
parent
9475938761
commit
c05a2d2093
3 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue