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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 8c6f8cde for ; Thu, 18 Apr 2019 18:41:40 +0000 (UTC) Received: (qmail 19982 invoked by alias); 18 Apr 2019 18:41:29 -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: 44232 Received: (qmail 2098 invoked by uid 1010); 18 Apr 2019 18:41:28 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.1/25419. spamassassin: 3.4.2. Clear:RC:0(209.85.166.44):SA:0(-2.0/5.0):. Processed in 1.381159 secs); 18 Apr 2019 18:41:28 -0000 X-Envelope-From: mikachu@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.44 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UYy/t2EWGABMpLOUxwLMlVk+ZwV5bp8i/b4wlUONJWQ=; b=Q9dxRYb2A+S3VgSfp1V9C07aNNtF1nSE+2l+a3RCxpn2qpkQ4z/1FbuimxJaojxhPH UBqWbGFAF8XTtvovGrfmROojxU+11wBRs5RQ8U2EWHd/rYF6LK0TBILsqASxKobkT4Hy Tb51FhJMT65r7v4rTPACLl9D6NyKmkyjzUtDnx1fMW+nMeqPwsurYfRiiirE7pTjTkCH 8Iyv2DEFY3HMr6PWRIP1Ekp0WkMs+wX0zKihMq5guipl/IllNb5ozGbCsYuIvq/vlUHX Z6CGTBQRVVImDyLbG6qjiAfH6P9c8ELL60fVT3k6XeskhXAodE5+NhxKJ70fQx/68eGW zkqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UYy/t2EWGABMpLOUxwLMlVk+ZwV5bp8i/b4wlUONJWQ=; b=fv+GDKhYr7WMlBHcIxWEjDJRJSJc/RPe21xQlbE63b/lgZtm5Wbpb/Gq2QWaI/WI3X 7+LfIo2jMX0jSvlMgW01ducFm87pJmZ0x0McRX5j1Smgw6jPfOvodZlEbXTV8ZwamvrH qyCkZ64v9PmkSfrzXWtqnttofgww+8DxZchkC2DuKxVWzsrH6u1DIGmhDCzLeoZi8wSZ Ez+IfpgPyLQlVQTa5fSJ3+C8N7LB3b0DZ5jy9KtFaLSIgVOVQhoHDl/BqWnHzrk2LAEQ YOE709olWJBgfQGbjTsR/6lFHu+tJyQGNp42mUNj15jUr6W6aq4qFUPgosb9xuYwMRc1 zFTw== X-Gm-Message-State: APjAAAXypiiU0A4enKeQtoBidEJK7Zc7s7kh/i769U0p8Y490cUMF5dH ApDbulsudq8HkffFegKN3NaXWPSKB6lr9i5JP+Q= X-Google-Smtp-Source: APXvYqw5fPQAXK8nsl0t+qHavx0bNlznY+wQOMenUWssRjfnSn1Fn9h54OdhWysd7QpgbFMs6rKWgN4tZvOlqCWnphI= X-Received: by 2002:a5d:8c98:: with SMTP id g24mr26713899ion.35.1555612854927; Thu, 18 Apr 2019 11:40:54 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <8B423652-107C-4DDA-A333-907B42A670F8@dana.is> From: Mikael Magnusson Date: Thu, 18 Apr 2019 20:40:54 +0200 Message-ID: Subject: Re: Misaligned cursor when prompt linebroken To: dana Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On 4/18/19, Mikael Magnusson wrote: > On 4/18/19, dana wrote: >> On 18 Apr 2019, at 10:39, Mikael Magnusson wrote: >>>PS1=${(l:$COLUMNS::a:)}b >>>the cursor is placed on top of the "b" for me, both in urxvt and >>>xterm. Under zsh -f the initial rendering appears correct, but not >>>after I type two characters >> >> Same for me in Terminal.app. The return of workers/43267 (&al.), i >> suppose? > > Just a small additional note that it doesn't matter that it's only one > character extra in my example, the same thing happens if you put > bbbbbbbb instead of just b. I tried reverting that commit (w/42285) and it fixes my problem. I also can't reproduce any behavior that erases lines with it reverted. Since having the commit breaks all prompts that are longer than one line in many(?) terminals, and only fixes the case where it is exactly as long as one line in some(?) terminals, I would argue for reverting it in git. -- Mikael Magnusson