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.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to;
        bh=hsBcEfaZNCH4M6o+an8Zivww+EhKuLDjXfB1YJkj/qg=;
        b=iK0/E7seYmbMzvxRe24Q3U67Rv3caCBl8jvI/Qv4mO651BKI0ZhjRE4CsKrFAZZ3lp
         d5GjJXWQIFQKbbUiMdOyVZgSu/Me3d84DWOzrfRLKsX0rA5c/3XgNd1ULYHJ/5CHyjd+
         X89V7bODW8uquPbN/r7qHKhyThlZgBOu1aa7msDRYxi9L7mabZQ1SRtfFjVJVZVwnoXT
         lU8uk2MGKSjgqX0wCZhkK7xEcR4j3T7YBldV56nPN8hAQR17Y7tBSw1FzSmxKQuycVT9
         HkCUlbv+gh7GO3e58P+nzUG5ftSN3Di9iKIEOJrcU3LCnP5QaHqUod2nK//lkrLVizRm
         RiUA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:date:message-id:subject:from:to;
        bh=hsBcEfaZNCH4M6o+an8Zivww+EhKuLDjXfB1YJkj/qg=;
        b=TtpVe58PGoRgayhr2AGiRyGUyJ9lmCvezI7u0aC7LbONhL2gasm/phc9hvTMTH0LdX
         5zrm4IvdDQEOQuTxOi/OhKPZKVGVE1KlUgjJEz+/GS9Zw+dnEH7/bXVa7mt9GUcbiFtz
         G2FVBtTdu1p0dDmmV679MQI9rkVzq7Ny6GBAXODXFCAO4sWbgNDAfrhrbiqnhPgMrIap
         IrcsSElYtfvTQeQAzpc6eM7wqLGTvhStnaj4Wh7jwqmGIdPum8LY7HwPgtIC6UFysUOP
         2fKhoeZXfIxQUQW0Ot436ErSKczbXQPW+ZvDhrkysuOZkQwOFtBbBOWg0VIpPBh/PP2b
         mhhA==
X-Gm-Message-State: AOPr4FXBBE5+ZUFIy71aCtl1hTDwxrVqGtV711mUrWBu2Uxnw8Zw+ekbE9Gp8JaDKOpmabZwN1bxZAcyzuneFA==
MIME-Version: 1.0
X-Received: by 10.55.192.71 with SMTP id o68mr1099486qki.27.1463721915604;
 Thu, 19 May 2016 22:25:15 -0700 (PDT)
Date: Fri, 20 May 2016 07:25:15 +0200
Message-ID: <CAHYJk3TPHXFx96mm-40hvEqnd__8v8mnebiZ1r+thxGorZz=qg@mail.gmail.com>
Subject: Bug in undo/redo handling in conjunction with history-beginning-search-backward
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Content-Type: text/plain; charset=UTF-8
X-Seq: zsh-workers 38524

zsh -f
% bindkey -e
% bindkey '^U' undo
% bindkey '^Y' redo
% bindkey '^[C' history-beginning-search-backward
at this point, type in "bin" and invoke the
history-beginning-search-backward widget, type a space, then undo and
redo fully a few times, you'll notice the point where the extra "n"
starts popping into the command line.

I think Bart was the last one to poke the undo code, or maybe Oliver?
:) I haven't bisected it (I will if anyone asks me to), but it doesn't
happen in 5.0.7 and it does happen in zsh-5.1-21-ga4f087b (which is
just the other old binary i had lying around).

-- 
Mikael Magnusson

