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

Re: [RFC][PATCH] Add change-directory() widget function



On Tue, Apr 20, 2021 at 2:32 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> [[ -n "$PREBUFFER$BUFFER" ]] && zle push-input

Oh, I missed this:

> On Tue, Apr 20, 2021 at 1:13 PM Marlon Richert <marlon.richert@xxxxxxxxx> wrote:
> > @@ -0,0 +1,29 @@
> > +zle .push-line-or-edit

That's still wrong, because in the event there's a PS2 prompt, you'll
never get past this line.  You need .push-input here.  My suggested
test for $PREBUFFER is probably not actually needed.




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