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 6d5bc944 for ; Sun, 19 May 2019 21:08:53 +0000 (UTC) Received: (qmail 23818 invoked by alias); 19 May 2019 21:08:40 -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: 44331 Received: (qmail 22429 invoked by uid 1010); 19 May 2019 21:08:40 -0000 X-Qmail-Scanner-Diagnostics: from mail-it1-f177.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.177):SA:0(-2.3/5.0):. Processed in 2.341957 secs); 19 May 2019 21:08:40 -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.177 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=EgSYflV3gPCxL8yDJsJORsDs1TpULkDZCsZ35pmKuts=; b=kbLDRmLyk+42iSbWTM8cphha7VBbT7FE2d0zuP8/dmjhxs61arq2ZxYVqNd1IvXSGw SsVb4D7ttLR0gs7FLaMqU23ol/F5CWnp/WzZsECoAy/9843mOyio47kQF6RDw7eNRpbw p/9D8ODh9hdIijRJnbpDyagr7vYThPA3kyb5JLu1g/Aw00pu5UoRPLM2xWW/3ITnwFJx Eaiv0jOFIkjW7L+GWeSMWGNr3lM/7DTXXbGIZMQ2YjoRrrRVTN5jKcNrMXQtD4lV2UE1 AZiZ85B8xd9bsBEOYuqlJaVDdpQUr5MZxy7lm358ZPdUz4grQ0E/xLYGgzJYXhMfnawA HnPA== 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=EgSYflV3gPCxL8yDJsJORsDs1TpULkDZCsZ35pmKuts=; b=Q/8lHiaNfWkn7OjAt3jKr1Gm6d+zIiO0oIxgl6fKLDBGzz5MoypQPPfAyWCPIcU8J+ uxyADddMNMyPFJIdGxNal+kzd4b5vo1Yj86jJEIImJlXFmi5UW7bX+LJXwweRW6sX2Uf EDJd57jnY/06PTVC2hoCPlcBF2i944zXN6T8DF7hcyMc6A4H0YPYF6VOmcksK/qhorTI +NlrE6YVmkrlUU6dZRcHojYa/jd1JuvE/vhn6oDjKhhYrp7rGKWzaOscLtqJVCGOiWTN p+2oCiPO7BJxO8e6pnFI/djVfomL3FGRAuD2bDpvmqj/uqdqYRYF8o9SK0CkyJD1O6oe sPeQ== X-Gm-Message-State: APjAAAXSVPkVwjtbxcBkvvmf3gZyN2cL1yM9WqP6FCPwh+shzSNn2ljE X8UZiKzYadTaPR4KW6AZw9kI68L7XdqimwQGkYc= X-Google-Smtp-Source: APXvYqwx2HEAtCmXyw2uWp6+QgccSvFtKT9elhDDgurhTBRthYxglhA4MmOwFgg9tx0UpyykdIbh4Rukw/b2bwwJxsM= X-Received: by 2002:a24:560c:: with SMTP id o12mr18231061itb.90.1558300084116; Sun, 19 May 2019 14:08:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Sun, 19 May 2019 23:07:53 +0200 Message-ID: Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix) To: Bart Schaefer Cc: "zsh-workers@zsh.org" Content-Type: multipart/alternative; boundary="000000000000f7a2580589440222" --000000000000f7a2580589440222 Content-Type: text/plain; charset="UTF-8" On Sun, May 19, 2019 at 10:12 PM Bart Schaefer wrote: > On Sun, May 19, 2019 at 11:51 AM Roman Perepelitsa > wrote: > > > > I've tested my patch on two more terminals: Dumb Linux terminal > (TERM=linux) and Command Prompt with WSL. On both of them ZSH misbehaves > without my patch and works correctly with it. > > This is promising and the patch looks plausible, but I must ask: Have > you tested the case where the rprompt is printed on the final line of > the visible screen? > I went back and retested. Yes, it works correctly when rprompt is printed on the final line of the visible screen. I've now tested on two more terminals: KDE Konsole and Alacritty. This is the full list of terminals I've tested so far, all reasonably new versions: - GNOME Terminal. - MacOS Terminal. - Dumb Linux Terminal. - Windows Command Prompt (WSL). - Konsole. - Alacritty. On all of them when RPROMPT is non-empty and ZLE_RPROMPT_INDENT=0 ZSH behaves incorrectly without the patch, and correctly with the patch ( https://github.com/zsh-users/zsh/compare/master...romkatv:rprompt-indent2). Roman. --000000000000f7a2580589440222--