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

Re: completion within a function



On Wed, Dec 30, 2020 at 6:40 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Wed, Dec 30, 2020 at 4:30 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > Yeah, see other email about -vared- context changing some things.
> > That'll take some digging to figure out.
>
> This seems to deal with it:
>
> run-complete () {
>   local -A _comps=( ${(kv)_comps} )
>   _comps[-vared-]=_normal
>   vared -i do-complete argv
> }

With that I do see the output. There's some garbage in it, but it works.

-- 
Felipe Contreras




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