Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Undo is confused after push-line-or-edit?
- X-seq: zsh-workers 35670
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Undo is confused after push-line-or-edit?
- Date: Thu, 2 Jul 2015 20:09:51 -0700
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
If you execute push-line-or-edit, and then any SINGLE editing action in
the multi-line buffer, and then undo, the undo reverts all the way back
to the prompt. E.g., start with
% { : begin a block
cursh> some more stuff
execute: push-line-or-edit_
Which leaves you at
% { : begin a block
cursh>
% { : begin a block
some more stuff
Now ctl-w to kill "stuff":
% { : begin a block
some more
Now ctl-x ctl-u erases everything, when I would have expected it to put
back the "stuff". If you do more than one editing action, you can repeat
the undo back as far as the the second one, but the first one is always
skipped and the entire buffer erased instead.
Incorrect initialization of undo_changeno ? Missing mkundoent()?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author