Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug: magic-space and expand-history delete part of line since 5.0.8
- X-seq: zsh-workers 36352
- From: Jacob Niehus <jacob.niehus@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Bug: magic-space and expand-history delete part of line since 5.0.8
- Date: Mon, 31 Aug 2015 19:32:23 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=E7XCRS+qOnx/yCWf0TuBOD56PkZXypIoRFTI8JSLp3U=; b=qOHCLNvbGc/dfQI1TWEfRnhJYj4YwsNiEZavlHbeM5MCdxpBAGxvBb4TLiSKcbRW0K xh4KUBgx63SSKVvsRiER4EiO1HRUXRw/ZCd2vwud3M55yRWSvY3qH169xN+vbJG1UMeI 5yNeBFJkUSEDaz9gBpnBVb9JuPS6pyQkepeHrsPSFc/2Vduj2ERCzip9A4eG0wwAbYUy zyhD6H9g9kcL8JRIpTBS79pCPFzpTl8d76kV5+XfmoSD2AWDZjmDOwhNWeJhXtqxKTVi 1kZSJxS/lGRHBYOTBwu1RTfc7JyXUXj5fHR0/g0PMQP6KD/ClMoI+WBFmEWsBvMQJBIx fHtQ==
- 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
Since zsh 5.0.8, using magic-space or expand-history can delete part of the
command line for no apparent reason. This does not occur in 5.0.7 or 5.0.5.
To reproduce:
$ zsh -f
$ bindkey ' ' magic-space
type this:
$ vim =(ls) -c 'foo'
move the cursor between 's)' and type '|' then space, and it changes to this:
$ vim =(ls| )
"-c 'foo'" has been deleted. Many times now I'll edit a command and the whole
right half will just disappear. The same problem happens when using
expand-history.
I git bisected this down to a single commit:
https://github.com/zsh-users/zsh/commit/c0d01a6fe0c67911650730cf13a2b9a0db16e59b
The commit info/message:
> commit c0d01a6fe0c67911650730cf13a2b9a0db16e59b
> Author: Peter Stephenson <pws@xxxxxxx>
> Date: Tue Jan 6 17:05:17 2015 +0000
>
> Fix command substitutions to parse contents as they are read in.
>
> Do this by refactoring misnamed lexsave()/lexrestore() to allow
> continuity of history and input.
>
> Add test.
-Jacob Niehus
Messages sorted by:
Reverse Date,
Date,
Thread,
Author