Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: add zle-line-finish special widget
- X-seq: zsh-workers 26347
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: add zle-line-finish special widget
- Date: Sat, 17 Jan 2009 10:08:12 -0800
- In-reply-to: <m33afix0x0.fsf_-_@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <18789.30656.261463.382208@xxxxxxxxxxxxxxxxxx> <20090110095231.GA61601@xxxxxxxxxxxxxxxxxxxx> <m33afq97gg.fsf@xxxxxxxxxxxxxx> <20090111025418.GA7272@xxxxxxxxxxxxxxxxxxxx> <m3tz857mkm.fsf@xxxxxxxxxxxxxx> <090111110748.ZM12349@xxxxxxxxxxxxxxxxxxxxxx> <m3r63975pd.fsf@xxxxxxxxxxxxxx> <m3ocyd70aj.fsf@xxxxxxxxxxxxxx> <090111193317.ZM12655@xxxxxxxxxxxxxxxxxxxxxx> <m3k5916unp.fsf@xxxxxxxxxxxxxx> <m33afix0x0.fsf_-_@xxxxxxxxxxxxxx>
On Jan 16, 6:54pm, Greg Klanderman wrote:
}
} Bart also made the following comments on my original patch which I
} have not addressed:
}
} > it's possible that the zle-line-finish widget should not run when
} > errflag != 0.
}
} > I don't know all the ramifications of the values of various globals
} > at the end of zlecore(). PWS?
}
} Peter, could you comment?
One thing related to another thread is that zle-line-finish will run
when push-line-or-edit is used, between the push-input and get-line
stages. zle-line-finish will also run *after* send-break, i.e., it
will run even if you interrupt editing with ^C.
Both of those would be avoided if zle-line-finish runs only when
errflag != 0. Refreshing my memory of the code a bit, I'm coming
to the conclusion that the test should be:
if (done && !exit_pending && !errflag &&
(initthingy = rthingy_nocreate("zle-line-finish"))) {
At the very least it should check (done && !exit_pending), even if
it ignores the state of errflag.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author