Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion with separator
- X-seq: zsh-workers 50184
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Cc: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- Subject: Re: completion with separator
- Date: Sat, 7 May 2022 15:19:41 -0700
- Archived-at: <https://zsh.org/workers/50184>
- In-reply-to: <CAP+y1xC9gFytVbRi9xJj2fK26Y2sLRw-VY2VSfpXLMB8L3bhwA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAP+y1xC3AF3XiL9tVF9_N9JZexA4GwKC-c7ZJN87W9ih_+SV5g@mail.gmail.com> <CAH+w=7YaJF2c_jqyapAhVXoZu9A22x2C6p3t4yvwjiWyVxiqJg@mail.gmail.com> <CAP+y1xCAMZdUNqrTJm03UyPwoUt1bURX-kvaQf7ii=2AxgFRkA@mail.gmail.com> <CAP+y1xDNqd2z7-dEBssxOJBeAgCymN-XAU0QTO-cMQ9T6jPd1w@mail.gmail.com> <CAP+y1xAfr=QVdERerrX3Cu0T=v1Dshda15AH2h=ithDtTxZocA@mail.gmail.com> <CAH+w=7Y1GmPev5cbZn_FAy=ihtNuDWB+FwP4Z88Uw+n8cDFe5w@mail.gmail.com> <CAP+y1xC8fFBRR2yKTyGfeiVFTG8TyR6tZKBr=hJhXwgCUSkjnA@mail.gmail.com> <CAH+w=7Ygd66BT_puoOj+ajn+vTQDbKq7D4K8_YKpLMoBWcZNJw@mail.gmail.com> <CAP+y1xC9gFytVbRi9xJj2fK26Y2sLRw-VY2VSfpXLMB8L3bhwA@mail.gmail.com>
There's actually a bug in _values. It doesn't help with Pier's use
case, but it might explain some other weirdness. This has been around
a LONG time.
diff --git a/Completion/Base/Utility/_values b/Completion/Base/Utility/_values
index 688ada848..5ed79e890 100644
--- a/Completion/Base/Utility/_values
+++ b/Completion/Base/Utility/_values
@@ -60,7 +60,7 @@ if compvalues -i "$keep[@]" "$@"; then
_describe "$descr" \
noargs "$sep[@]" -M 'r:|[_-]=* r:|=*' -- \
args -S "${argsep}" -M 'r:|[_-]=* r:|=*' -- \
- opts -qS "${argsep}" -r "${argsep}${sep} \\t\\n\\-" -M 'r:|[_-]=* r:|=*'
+ opts -qS "${argsep}" -r "${argsep}${sep[2]} \\t\\n\\-" -M 'r:|[_-]=* r:|=*'
curcontext="$oldcontext"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author