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.



Sorry for not responding quickly.

On 2016/09/29, at 2:46, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:

> --- a/Completion/Unix/Command/_head
> +++ b/Completion/Unix/Command/_head
> @@ -32,7 +32,7 @@ case $state in
(snip)
> -    if compset -P '*[0-9]'; then
> +    if compset -P '[0-9]##'; then

What is intended by this patch?
With this, the following completes nothing:

$ head -n -5<TAB>

Same for _tail.



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