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=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 d961c8d5 for ; Sun, 19 May 2019 20:13:17 +0000 (UTC) Received: (qmail 12404 invoked by alias); 19 May 2019 20:13:07 -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: 44330 Received: (qmail 22525 invoked by uid 1010); 19 May 2019 20:13:07 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f175.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.208.175):SA:0(-1.9/5.0):. Processed in 1.66034 secs); 19 May 2019 20:13:07 -0000 X-Envelope-From: schaefer@brasslantern.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.208.175 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f9k/KN9dVuGcYf/GwuC41l0vuQAucl4SdGy/qhfK29Q=; b=i0bmQBL+TvcrX8qkcGg/JQIn8LMhpRRqfpKHzT6tG5Z+0Cevcppx4ZItMQNxrCYyTe 75Y0QN9SJDmtTi3MVr6/SDbw7Z82CWvSRCpejb476KeQJI5BTQEsCOu+DHi7sdLHkcYu zjDG+NTEfuH0W/wHjkPz5MXtLpDPt9VF0EERBK6/M3P0Osh3OTK3twOpetcfsaY2GE86 NAyIEp6AGltMr3MJMulsreaV4AWzgJ/Xmm6cToWQXpZ4AZBw2wJiq00QiWIsKEWsBZJ+ UvcQaVhw+EuqIIG/gRNuanYsqc4YHjdKZZWwqhk/B1U/9rFButVmzsgQh1azOSEd1Oig dWCA== 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=f9k/KN9dVuGcYf/GwuC41l0vuQAucl4SdGy/qhfK29Q=; b=F9/PxIMpl6FOGeRgG6Hbb9W/HTRe21NNahxf02ObRe53Gqs197595NGdYMEniEAS/5 wSHuDvTOxl7k6fZyqCquYOTbxIsekOCa0NNBBXRHCWQdGt8CxbE3JShbDequEhcjpqrP oiu/bdegzFlqFa9rP3zNHyp1j3kxVmbCHQseQZE06fL6C8eN23bMqqvIvrYZpkBnhQVa A5gZzRviYBSnkrLfGWgj+FdB72rRCNIIKsu6bUDQ+v9QaJEyd+zuzcedkidNhaia3J4D 8b3KyT/gMaw2B5lyhu/t9rmubkd9FP57F/azR6jBL9GWAOfirHbmi1emUHu7JoKvo2wJ 9QOw== X-Gm-Message-State: APjAAAVhoJFezPMMGfMgVV57sM2M9BssVCRaDrpyDdQjCM6qI3oAfwjY hoe3TamJCZk279R5NbdntmwmikmsSPkdIilmjS5rCQ== X-Google-Smtp-Source: APXvYqztoVH4jsWOCcNvHst9EcZiNM0bBPoFnQB2STQJTa4OLbxKZoVZaa4hfc8E74pzSXBg37eNcqUuhERtB6zRm80= X-Received: by 2002:a2e:9dc6:: with SMTP id x6mr13440960ljj.27.1558296751642; Sun, 19 May 2019 13:12:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sun, 19 May 2019 13:12:20 -0700 Message-ID: Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix) To: Roman Perepelitsa Cc: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" 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? There are several terminals where auto-margin behaves differently when characters (especially carriage returns) are printed at or to the right of the margin in the bottom row vs. rows above that.