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?
- X-seq: zsh-users 21985
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Hong Xu <hong@xxxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: ZLE_LINE_ABORTED: how to restore the last non-blank aborted line?
- Date: Thu, 29 Sep 2016 00:12:57 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=9v96KWrkW+B7LLllCdVjx21egHfyXeqkmNHMua7ClIU=; b=emNt7/lLsNh6QTHstgf4mkb//TpIcKzTZl5AexGYEsQt34ovHHvxghKO0TVdNlQQ3y GzCePHI19be8XrPba7vF84I0UfYscymOkNy5EfZna1328TLAq3jktUA43sZksLPGGdN8 DvhSX4RkqBk4lmBVZYB81b8Ac/koEpgJprn3Jiyhwetidn1S3S85lv+ozMgqRXyZVl+L d0vP7i6sm2o0APnqW2qQkQr4W+LZsl6cNPWitiRAa6kFqw3cCCMOBEyR+iFDjcAGoAKb YNhHH0UylTegjdahNGxy55czV/cbgS1amIZst35rIjlqAQJK1SrO/VZQF+r3+l9apFse VaBg==
- In-reply-to: <ed1737fc-2336-dc0c-2f43-a2d2dc178bef@topbug.net>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <ed1737fc-2336-dc0c-2f43-a2d2dc178bef@topbug.net>
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