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

Re: ZLE_LINE_ABORTED: how to restore the last non-blank aborted line?



On Sep 27,  9:11pm, Hong Xu wrote:
}
} ZLE_LINE_ABORTED would turn empty if ^C is pressed on an empty line
} disregarding what it was. This is annoying since sometimes auto
} completion stuck and more than one ^C is used to cancel that.
} 
} Is there any way to preserve it in this case in zsh?

Can you give a more specific example?  Normally any buffer preceding
the line on which the abort occurred is already in the history and can
be recalled with up-line-or-history et al.; ZLE_LINE_ABORTED is only
needed to capture lines that haven't yet been added to history.



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