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 30ee6229 for ; Mon, 15 Jul 2019 19:42:06 +0000 (UTC) Received: (qmail 29098 invoked by alias); 15 Jul 2019 19:42:01 -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: 44529 Received: (qmail 24200 invoked by uid 1010); 15 Jul 2019 19:42:01 -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/25510. spamassassin: 3.4.2. Clear:RC:0(209.85.166.50):SA:0(-2.0/5.0):. Processed in 0.989312 secs); 15 Jul 2019 19:42:01 -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=05y+5t7V/5fx3x4yC4GTEHQ0reexraMi8RhCo5Nc1PI=; b=DbIlBon9w5iiurpvx1RHuHsQi+vOX9OkhYrtS8OYMd9T/eeKauMflc3aRW8N3U97tI rKngtrxZVEy2k9+ezUZAR5eZfcfV4ZQZO7moKunUQkvxQCIVBpUJpk6mAK/kbHcejQxZ hR9EsdV4Lp6QTMjlWBl9wTG4j7U9DnDuXg/Ws+T9DbyzMUqKCZbpt1sv6n3IXo0F3GGi pt7nriDmaJu2dbTDvMM/06GElFrAZ5Z5x9Re1dc83eUPQ+0gRM5h3g4A2UO1tAy2yfD6 2284srT9Hr+ZBPetra2BJyiMj7BAD1ozlM+Gk8P7eSYpqqecpP3uTByz3dZ7z1jC7G4b VM8g== 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=05y+5t7V/5fx3x4yC4GTEHQ0reexraMi8RhCo5Nc1PI=; b=XmxQ32Ujm/UoGbuRgPPg+Whh6zpzJBhN7lR/X84DBn5tOeTDHvwcwwvXyfG/pV3Xi9 2VCw4JdYpWw3q09udDKBjiHZFPY1wFh5xfDnK3geNs2c05qPG1vkv1449evuAQ5H8QvH 1vTIExfY4KQOhLyh23R6xuIh1nEQuUPqd0MrD8J3xT59YQG3qIm4WFSjv8ArK7aEksA1 ZGFmpJlRI1mBhjmB5VDzgOs1aSnjDlbC2bEj7h6wDtJSbly0R0wXa9V9AeI1nTOCqfOk IXf8nkAjzydlTH5gRnqTEzlsb4A4N6pweEH8go4JKzE0/KB6A79es2YSozwjt/jGaMtU 2dIQ== X-Gm-Message-State: APjAAAWJBdW2LrsuyMo/SI3b6y+iS8hKWehLOKXxc6bRq4k84ODeOlRc qZQxQVDLWD9QaldzLVgQXKZ2ZVrPUY8oa/9ucaYhjU3q X-Google-Smtp-Source: APXvYqxjJ9FkKENIjXkzrIMaGRieWxwHhEzkARQRUyqLEsFd6VIZY3Iq84YTK9fn5LU72u5DYKPSSXHYd3SAFpzIrrI= X-Received: by 2002:a05:6638:627:: with SMTP id h7mr30191566jar.33.1563219687632; Mon, 15 Jul 2019 12:41:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Mon, 15 Jul 2019 21:41:16 +0200 Message-ID: Subject: Re: PATCH: draw prompt on the correct line after window change To: Mikael Magnusson Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Mon, Jul 15, 2019 at 9:32 PM Roman Perepelitsa wrote: > > On Mon, Jul 15, 2019 at 9:14 PM Mikael Magnusson wrote: > > > > I've tested it on urxvt and it makes things worse there, enlarging the > > window always deletes the last output line even with an empty input > > line. > > Thanks for trying it out. > > I cannot reproduce this with the following procedure: > > 1. Ubuntu 18.04, fresh install. > 2. apt install rxvt-unicode (v9.22) > 3. urxvt > 4. PROMPT="${(pl.$COLUMNS..-.)}%f"$'\n> ' zsh -df > 5. reset > 6. Hit a few times. > 7. Resize terminal window back and forth, both fast and slow. > > What should I do to see lines being deleted when enlarging the window? P.S. I've tried the same steps on ZSH without my patch. The current prompt moves one line up every time I enlarge the window, erasing the previous line in the process. This is the sort of issue my patch is meant to fix.