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

Re: PATCH: $ZLE_LINE_ABORTED



On 12 September 2010 21:49, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> #the intent here is to insert syntax errors back on the command line, since
> #those aren't saved in history, for example entering "do;"
> function _zle_line_init() {
>  if [[ -n $ZLE_LINE_SAVED && $ZLE_LINE_SAVED[1] != " " &&
> $ZLE_LINE_SAVED != $history[$((HISTCMD-1))] ]]; then

I had print -s $ZLE_LINE_SAVED here for a while, but it didn't work
well, that's what the [1] != " " is there from (emulating
histignorespace), forgot to remove it.

-- 
Mikael Magnusson



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