From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27757 invoked by alias); 10 May 2018 22:28:14 -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: 42756 Received: (qmail 17206 invoked by uid 1010); 10 May 2018 22:28:14 -0000 X-Qmail-Scanner-Diagnostics: from mail-pg0-f42.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.83.42):SA:0(-1.9/5.0):. Processed in 23.105442 secs); 10 May 2018 22:28:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: agkozak@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding:content-language:thread-index; bh=p3HbaT6EVHTWngbdh93jRYzRmWpXB6DbnYw75nxIgwU=; b=TtRqgPUbH+MUGdPhKGCcAMHmcslSHeidQU5U+paZ4m+hBuM4uKJESx2ubjZCgCN+w7 2w8UH/aFM6FEBAaqvA6ZWAisMk/H5DVHG8jTIucIYKXXsqgI/TplA2PqrraVbCnE4y8e 3850rvc9Myi9bK7hTbN1yfrmSD5lBlKcYPGyIA4OyMeiKtos4IDKSJpuSX++/3BfBdC5 eVWAgVz4fBQfBs7KXBgL3Qq/r/NVXek+es3zHJKyLfCnbXCbYKvk35nuI+QSQBCVGSaH +wfYLoVjsVA2mOE/Kf4mKSnsxb4kAT4gmW6H6BFRA/5oYPW53eCqTeS/tDg1QFItdlgg fHXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding:content-language:thread-index; bh=p3HbaT6EVHTWngbdh93jRYzRmWpXB6DbnYw75nxIgwU=; b=FXf4GUAP0MlQbkwLvsfhiWvR4Rmwc4bRCewrIPmURa3YJvmueSy5CBYhOMHYIpZYLa G9Dh8MDOv+6sJirjM+jgsWHgPtdsYp/KLEqgw8JToku3n/y8hFhl3O7ZLBPoElC6boPU UcyMGpjhTdAIAzTALKv3jyK6i3x+ceLx46vFcnti6IGTmNPyKmBYcYxhcC54sLgaSiaj 2KD++Z2+VLtmG404ewxuSh5aI//aJiZd75BNW4VsuZgJF1V/shHPjclPWF49rsn4UBTL upILlu07uGAOp6k1kfjkjxWOo7hmMsNISnriLFWy9h3wXh4LvbnenhDIGOEi80u8G+Dv ZfoQ== X-Gm-Message-State: ALKqPwcvYA2d4eNgri2rhR0pCQf7IgnE/ujLRien1r9x4VVXnga0bMxI Cge+kvT+ZbE/TxAAcHZVwwtyYA== X-Google-Smtp-Source: AB8JxZp7KGIwWZBqXquUzWx1UbgWxFBrTDP21nnrjOW8aCstfTBzvbHwlnm0AmrpWytX0ScvVyyULA== X-Received: by 2002:a65:4542:: with SMTP id x2-v6mr2525989pgr.24.1525991268393; Thu, 10 May 2018 15:27:48 -0700 (PDT) From: "Alexandros Kozak" To: Subject: Prompt wrapping problems since 42285 ("off by one fix in multiple prompts ") Date: Thu, 10 May 2018 15:27:44 -0700 Message-ID: <005701d3e8ae$1eab9070$5c02b150$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: en-us Thread-Index: AdPorI8jbeV7QBSnRNy4XXybI5zF1Q== I have an asynchronous ZSH prompt (https://github.com/agkozak/agkozak-zsh-theme) that works quite well in ZSH 4.3.11-5.4.2. Ever since v5.5 came out, I've been having a lot of trouble when the prompt wraps; the cursor frequently appears a few characters back from where it should. Eliminating the RPROMPT sometimes helps a bit, but even then, if I enter something and then delete the line, the cursor will snap back on top of the text of the left prompt, not at its end. A simple test demonstration can be had (without downloading my prompt) by loading v5.5 or v5.5.1 with zsh -f and then entering PROMPT='abc@def ~/abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz %# ' Make the terminal window narrow or the type very large so that the prompt wraps. Enter a command that wraps to the next line, then delete the command (in vi mode, ESC d d). Depending on the width of the terminal window, the cursor may land one or more places before it should. If you throw in an RPROMPT, such as RPROMPT='(foo bar bat)' some real ugliness can be had -- always depending, of course, on the width of the screen. I've tested this out in Ubuntu and FreeBSD with mintty, PuTTY, lxterminal, and Blink Shell. Reverting the change in https://github.com/zsh-users/zsh/commit/d8d9fee137a5aa2cf9bf8314b06895bfc2a0 5518 fixes the problems I've described. Any suggestions? Many thanks in advance/ Alexandros Kozak