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

Re: completion within a function



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
}




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