From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3146 invoked by alias); 3 Jul 2015 03:09:57 -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: 35670 Received: (qmail 25829 invoked from network); 3 Jul 2015 03:09:56 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 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=apLbz2DrsuBwPF00L8+7yVrD8pHaNxKsjmNcX4+o+f0=; b=BJ6r7iSVVMqst4+V1MoBJcIwirY7whuAepxhB0kDHg2Z/kW+8hzMU78ldzhv4qMKje CX/p9JE5n7gkrLUiR04f78kPX6SUrg1DGI5XKQc4SkFPWicUVs5rGgQl+KUbVFJWE4cC iw/RP/KBRR8JfbCcqxEAqojVGn23PhUFfLbxu7EfQE99PPYlpUllkMRKLlEyCO6Tx6Ci ATForZfEjF5UfAKcgX8mnjGp8uBHzwUGkWzRGCFv23QJQrSGONEysJNkSj7ytKMT6lfR tf8I9gEHIC8d9lyS+hckNfsMajhQEHBZvLDaVpodkJqDVTbLZ9LnQ7UNxPSYiLlGkNPH FerQ== X-Gm-Message-State: ALoCoQlurfBhhTSnql/CXbO2skMBH3zFFZVdeQ89rXdBuVs5H3FIdLivAJGrH6gol32qdvb2A55N X-Received: by 10.182.20.232 with SMTP id q8mr31958094obe.83.1435892993851; Thu, 02 Jul 2015 20:09:53 -0700 (PDT) From: Bart Schaefer Message-Id: <150702200951.ZM10806@torch.brasslantern.com> Date: Thu, 2 Jul 2015 20:09:51 -0700 X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Undo is confused after push-line-or-edit? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii If you execute push-line-or-edit, and then any SINGLE editing action in the multi-line buffer, and then undo, the undo reverts all the way back to the prompt. E.g., start with % { : begin a block cursh> some more stuff execute: push-line-or-edit_ Which leaves you at % { : begin a block cursh> % { : begin a block some more stuff Now ctl-w to kill "stuff": % { : begin a block some more Now ctl-x ctl-u erases everything, when I would have expected it to put back the "stuff". If you do more than one editing action, you can repeat the undo back as far as the the second one, but the first one is always skipped and the entire buffer erased instead. Incorrect initialization of undo_changeno ? Missing mkundoent()?