Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] fix completion of parameter names for ${<TAB> and ${(a)<TAB>
On Fri, Oct 29, 2021 at 11:47 PM Jun. T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>
> ${<TAB> works if '>=' is replaced by '>' at line 1192 of compcore.c
> (I think this is a simple off-by-one error).
That makes sense ... if the previous skipparens test was for <= this
on should be >.
> But ${(a)<TAB> still
> doesn't work. In the patch below I removed the lines 1203-1209
> (and the use of the variable 'tb' that is now redundant) to fix
> this problem.
Thanks. I think those lines were intended as an optimization but I
probably tested it only with completeinword and the cursor somewhere
other than at the end.
> The original problem (worker/48788) that is fixed by
> the above commit is not affected by this patch. I _hope_ there are
> no bad side effects.
I didn't find any.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author