From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id a33fbcb2 for ; Mon, 20 May 2019 13:17:15 +0000 (UTC) Received: (qmail 13773 invoked by alias); 20 May 2019 13:17:04 -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: List-Unsubscribe: X-Seq: 44342 Received: (qmail 26814 invoked by uid 1010); 20 May 2019 13:17:04 -0000 X-Qmail-Scanner-Diagnostics: from mail-it1-f180.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25454. spamassassin: 3.4.2. Clear:RC:0(209.85.166.180):SA:0(-2.3/5.0):. Processed in 1.651079 secs); 20 May 2019 13:17:04 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.180 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1qPqIt1m8HevtQwKmA+46Pec1XIS+/JACscnvvYvX8I=; b=NP4aW5uM83g1dMyjL3mrS1PsfgXVdbRNRwyoSoSEaiFHu9WpLbLrkMtIh+oR5hMXPM XNKl8mWT++AxHtZVKfIJmpC0hfaDhjzxmq6jFMMIIuuUBl2e25HE26E2Ofe6sdrRbJ0D eDCtrrguvgHMlhxJ7pi9K0lytNZBmlu6sKg6AJrJaPebtXFCYSJD9VI02w+U5oRIJzmG koTM7kztZ7N3jBbwbrmlUr5+n8qSa70ZAutXpe4s4lFP4QMlxNByMqWrBh2LWwR3RMu5 PvG9OwpIwmmeAuj6ViP/e65HiuNx4xDGhE8qWyiN81HxN6x1nEuA7GfJ+9oXiS/swfAC gJiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1qPqIt1m8HevtQwKmA+46Pec1XIS+/JACscnvvYvX8I=; b=IPMLOC5AJ/9SJXla3NW8Kf6Ob7lbzL6+4qKYBzX+f1YNkm2kT4/qdApRyH+/KW9Rvk f+xtG76orcx/3nRt4qYbUfpvAa8BsE599R46CvmYr4P10CtR3pUb3wBDYNCqUbq9HvnV g/yzwlbxFe02PYI+IA6hXvA5jj5ydoj8mp7DnLKeyB24o+po6nP3v/wnr5F9UulltSB3 r9NVxbDYoJCBXDasJPwriMfhHSTbKPfgT/e/t/uhkmrdRzgF12DmW+A+B6w0rnLGpkIX X4LOwkVxR9JX28uaSx4/7RHytcIuWWILmkkvs7LHjD+BEheNQgrtsp6VjZ+/wTEQlZ1i D4Xw== X-Gm-Message-State: APjAAAX4AV9AlQWWekLbzw6s2y1qoaKpitUmn+N8bM7ULX/b17xgQUVR /4VzwzukW7oVzKgzaHaLC15iNmoVEgeXIGTB1c4= X-Google-Smtp-Source: APXvYqziIQXVewRBtN1SjSH+f85RoLnIeTcOrCpS964wsVlpK4J5nK2f3SQHnj/+mSNGUTUvA/p2PXq65rT+7QehO7o= X-Received: by 2002:a24:560c:: with SMTP id o12mr20317226itb.90.1558358190070; Mon, 20 May 2019 06:16:30 -0700 (PDT) MIME-Version: 1.0 References: <68081d8c-1aa6-203b-eb6c-e2d048de1340@ibr.cs.tu-bs.de> In-Reply-To: From: Roman Perepelitsa Date: Mon, 20 May 2019 15:16:19 +0200 Message-ID: Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix) To: Charles Blake Cc: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000005a27a70589518a24" --0000000000005a27a70589518a24 Content-Type: text/plain; charset="UTF-8" On Mon, May 20, 2019 at 2:41 PM Charles Blake wrote: > So, feel free to confirm yourself with xterm -rw or resource/default or > menu setting of reverseWrap, but with your patch and reverseWrap enabled, I > get incorrect behavior of a different sort. The cursor is not left > immediately after the 2, but there is an intervening blank space of exactly > 1 character. Flipping the menu item on/off and hitting enter in the shell > to force a refresh toggles the misbehavior. > I cannot reproduce this with https://github.com/romkatv/zsh/tree/rprompt-indent2 (note '2' at the end) but I can reproduce this with https://github.com/romkatv/zsh/tree/rprompt-indent. Is it possible that you were testing with https://github.com/romkatv/zsh/tree/rprompt-indent? To avoid the possibility of this confusion in the future I merged rprompt-indent2 into rprompt-indent so that the two branches are now identical. Roman. > --0000000000005a27a70589518a24--