thx I'll give it a shoot

Den ons 3 maj 2023 kl 19:13 skrev Bart Schaefer <schaefer@brasslantern.com>:
On Wed, May 3, 2023 at 2:59 AM Fredrik Ax <fredrik@axnet.nu> wrote:
>
> zshprompt% compctl -k '(arg1 arg2 arg3)' with-dash
>
> # typing 'with-dash ' and hitting [Tab] once:
> zshprompt% with-dash
> file2.txt    myfile1.txt

This dates back to the tokenization of hyphens to fix bugs in [a-z]
types of patterns.  The ancient code in compctl is using the raw
command string and therefore looking for completions for
$'with\233-dash' rather than 'with-dash'.

See if this (attached) fixes it without breaking anything else.