Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Completion: audit 'compset -P' calls to use shortest match where applicable, plus random drive-by tweaks.



2016/10/27 21:48, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:

> Thanks for the report; is this better?
> 
> -    if compset -P '[0-9]##'; then
> +    if compset -P '(-|+|)[0-9]##'; then

OK, so you wanted to exclude illegal sequences like a12.

Yes, the new path works fine for me.



Messages sorted by: Reverse Date, Date, Thread, Author