Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:date:to:subject:mime-version:content-type;
        bh=G4Y0qzgr7VPqaneo//ZjE/LlILANMijlg9PJ9YaNx3U=;
        b=g0s2RXL/LLGzcNopQY+F5vytwzg/OKnsrCfsd7QYseVMPWWlvUVTAL9tY9TIGVq61y
         RHBZChtrnB6GXgRE4DLww6Yhvx71THJLBX28j8S8j4Xjo3S3fzK9noB6BHu07KZp2nFM
         S7NZqzJdSh2go8TLplehaMCOc1PYULGp6yACGX1sUnTn3A/6MGquJcUanclirFM/hDLC
         EhzLm5S8v00UrnrEUiVgRu3dQVrogJgh7B7uTsKzdtx1zAPJxsLRBl7c31nzU49RLJmU
         FmF47hfQCdC86b+G1bgKLAqaUpg6d1dC/Hi/3XC+Bim+BlE4KhhP2e4V6sjlobZgLD/D
         V6yw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:to:subject:mime-version
         :content-type;
        bh=G4Y0qzgr7VPqaneo//ZjE/LlILANMijlg9PJ9YaNx3U=;
        b=eJ+PcRjZ8Bt/QjD7SV4RpjK/zrqJfpJ5zQ6BENUJpGR1oVbbpyQajEIQvQVD1SIRDF
         j52mtbQUlSSHmTZEsM/x3oZ4wbFxUspexnAo5OQT9eejTpflDwd5IKwZ9/z7LNUDLQKQ
         foFbOuhvX+rRDPnJSTIYMj+6vddsCBgvvA5VFrvZ+Lw5G5RbrC7/0pA4399topFeAtWV
         bjp0up8k29aDpb86XFqxudVkQmm4tYMoO3NP8c568yNFq59VGe5JvU1SxLUlsplO3AK4
         jiQtTgzhv3i6Fe8FSqj6QX1rW9XKXH6AL5uRWoNIDKzfvIsUL5Wc7HIPbaT6EQYlFBeT
         K1Zg==
X-Gm-Message-State: ALoCoQnB4csgf1f9U6x5XYWatYmsyOFsDuL9riDxl4E+iB5PtLgUM6JSDFnm8jonAiwkr6d07Uh037Iuqy0L/nH0RT98U/TJGQ==
X-Received: by 10.98.17.199 with SMTP id 68mr31938595pfr.30.1452575471443;
        Mon, 11 Jan 2016 21:11:11 -0800 (PST)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160111211125.ZM6061@torch.brasslantern.com>
Date: Mon, 11 Jan 2016 21:11:25 -0800
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: zsh-workers@zsh.org
Subject: yank-pop broken in current dev zsh?
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 37566

zsh-5.2-67-g424b417 (haven't checked older ones, but I don't know of any
very recent changes that would affect this):

If I start (zsh -f, emacs bindings) with

% echo one two three

and I execute ESC backspace ctl-space ESC backspace, I have

% echo one 

(with trailing space) and the kill ring contains "two " and "three".  If
I now execute ctl-y ESC y (yank "two " then yank-pop to get "three"), I
end up with

% echo one three

with "thre" highlighted and the cursor on the final "e".  The cursor should
be after the entire word "three", should it not?  The whole "three" is then
removed/replaced on a subsequent yank-pop, but the highlighting and cursor
may be off by one on the next (and all following until I cycle all the way
back to "
two ") replacement as well.

I at first thought this was related to setting the mark, but that isn't it.
It also doesn't seem to be related to yank-popping a shorter word after a
longer one.  It doesn't always happen, though it is repeatable via the
example above.

I suppose this might be related to the CURSOR increment I mentioned needing
following select-in-shell-word in a widget.

