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

Re: Cannot use LBUFFER+= nor print -zr from zsh/sched call



On Sep 12,  5:24pm, Sebastian Gniazdowski wrote:
}
} The ZLE solution you gave is ok, but sched can start without zle == true

Well, yes.  It should be fine to do e.g.:

    if zle; then
      zle -U "${(j.;.)commands}"
    else
      print -zr "${(j.;.)commands}"
    fi

If zle is not yet running, then it's going to start up the very next
thing, and will pop the buffer stack onto the new command line.

If you want an implicit accept-line, then you're going to have to do
something to coordinate with zle-line-init in the "else" branch.



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