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 e01f929d for ; Mon, 20 May 2019 08:37:04 +0000 (UTC) Received: (qmail 13070 invoked by alias); 20 May 2019 08:36:53 -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: 44333 Received: (qmail 857 invoked by uid 1010); 20 May 2019 08:36:53 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f50.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.50):SA:0(-2.0/5.0):. Processed in 4.104809 secs); 20 May 2019 08:36:53 -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.50 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=n/7QLRywSAwcLe9cObfDWqmVws3EQXGXIYRP38m2WgA=; b=R5lvNaaU4BgwXx3ONPbripT9DQCimTFW3tISwFDSzBGLycNnWy9GqZUphW/o2JP3ts sL5HVFDKTic0vgDmFa+z9fDu6XA/HHVnuzcTSuu4YnvTuPJqUtM4p2SL+5I4402MyQPr 9/xznOvS+bGbYGksqQ80C+K+W+Xm8dKCw5g76kUEKrb3nVgyjqV75i68gd/Okwml1bE0 DlxsBAh1js5JBe6GhrMIPGZC6FLvQJIAlbJ4SIrBQFKhnC6olaqdhi9ud2vyLkHgQDdr o8IBkoFm5JOuJj97oXyJXrd3WD7EH4cMXCO+bcDM8bxkMv8I28HRG5aE1m93ZNl88h+S 6rhw== 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=n/7QLRywSAwcLe9cObfDWqmVws3EQXGXIYRP38m2WgA=; b=SMMfec8PzLm2EKwk/x2GWdX0Ug9RhpLOokBt+BATqmE+tb3AKdnPsGHvomLCIFwQVd 2HDUcGRtucbresh2ZzK6Z1GebsmDTJtf365PQCvFLhwqHW7aT74YqAIi6ImBT9kXUGtQ ZYjN+g5R+hejeno21VIFyg7KWJSpnx1qpWVcxSQdZmXzJbobO+fFn26rFfTF/oMP43Zd peLMptGHeIa5+pGkqBqZtMey1kKbBgifMm70vtlOGqzchzejb8OhisJdt4cvl736uCcf 4t1xwF5a55xmIlWBbSjqTogLEJgMwDoIWs700sv5qLmI/61LqIqPlX5rbMflVj/h6Xto f9ow== X-Gm-Message-State: APjAAAWHooe4Ihi+6jbOfq4/6BDm1Gefz0VW0kK51UXrWfpixwRNRTtO HzXsi1lwXLzom5Kc5PFrj/qi7h4aTw8tBRv5cnNya5sE X-Google-Smtp-Source: APXvYqyzJMwxL3GXW14upZdQ3Terw64VN6NzJqhGlWkbOeeTyRoluieZmASmbxGpmBznQg4yu0xXQo+Xa7x/Zw8iVE0= X-Received: by 2002:a6b:490e:: with SMTP id u14mr595536iob.151.1558341376174; Mon, 20 May 2019 01:36:16 -0700 (PDT) MIME-Version: 1.0 References: <68081d8c-1aa6-203b-eb6c-e2d048de1340@ibr.cs.tu-bs.de> In-Reply-To: <68081d8c-1aa6-203b-eb6c-e2d048de1340@ibr.cs.tu-bs.de> From: Roman Perepelitsa Date: Mon, 20 May 2019 10:36:05 +0200 Message-ID: Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix) To: =?UTF-8?Q?Yannic_Schr=C3=B6der?= Cc: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000002a6e8605894da0fb" --0000000000002a6e8605894da0fb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 20, 2019 at 10:22 AM Yannic Schr=C3=B6der wrote: > Maybe add some of the common alternative Linux terminals to the test? > Like Terminator and Tilix? > Thanks for the advice. Just tested these. I also added XTerm to the list. They all behave as the other terminals I've tested yesterday. So far I've tested 9 terminals on 3 operating systems. They all behave identically without my patch (the cursor position is off by one) and with my patch (the cursor position is correct). I suppose there should be a terminal on which the unpatched ZSH works correctly but so far I haven't found it. I'd really like to. If anyone here is using a terminal for which the following test works, please give a holler. 1. Type `zsh -df`. 2. Type `ZLE_RPROMPT_INDENT=3D0 PROMPT=3D12 RPROMPT=3D3`. 3. Observe the position of the cursor. The correct position is after '2'. All terminals I've tested put cursor on '2' -- one position to the left of correct. Roman. --0000000000002a6e8605894da0fb--