From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9538 invoked by alias); 1 Sep 2015 02:32:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36352 Received: (qmail 7933 invoked from network); 1 Sep 2015 02:32:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 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== X-Received: by 10.202.169.65 with SMTP id s62mr998147oie.28.1441074763090; Mon, 31 Aug 2015 19:32:43 -0700 (PDT) MIME-Version: 1.0 From: Jacob Niehus Date: Mon, 31 Aug 2015 19:32:23 -0700 Message-ID: Subject: Bug: magic-space and expand-history delete part of line since 5.0.8 To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 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 > 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