From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1680 invoked by alias); 16 Dec 2016 21:00:49 -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: X-Seq: 40207 Received: (qmail 24649 invoked from network); 16 Dec 2016 21:00:49 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f41.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(209.85.218.41):SA:0(-0.7/5.0):. Processed in 2.294858 secs); 16 Dec 2016 21:00:49 -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=-0.7 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: nicholas.sterling@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.218.41 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dyc74GudvPfn8AZMGUJJbwJvZfxWhIKl6aoaJZeIvQM=; b=u3eISbpd9v0QDWHpI6Btu0kMlykDQFEotn3OKooVI/JsFeD1UBXzgIz3i4r4LHRxwE uQaBoiAbz2CCklg0Gw18l3FTW3XKnc1RHhVPNjviPN046p9wjhVcEL3vx6bSzG4fnCla a4NzeqFnU2jV47FF/k/WuKH92obbyDc78pXbAnUfttRma11bh2i6+E2x8DW6lkUWWSWl GGLlCbyhSdu5N0A6BCTUwyQkh5hMW/TTjS9opDHyFCy6PQQe8mWXqbN/acTncmi6Z5Iv gA5dQQ05QLr2qYx9NKnPlH0IF4FxrI+6eOtZ3Jz+o9zd35KO7yCU7FLE6j6d6GEs6cjg WPPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dyc74GudvPfn8AZMGUJJbwJvZfxWhIKl6aoaJZeIvQM=; b=R1IVCUWO8/gOOsWHU5ZJ9igspUnYw7XO8A9pgwa5lFy9mDPYuxVsSJHNARpdFa+bji 1Prq18XLjUkMLypl7RWI1VPwv4lLShAFbi4p6Op0kFpZIn1rr+gI0bYyF4P9w5MRpwfl DCEEGbwRSaVWwrq/bDV315WOYfxYDjzjEEYa0zvzuoLKGupHH9Kn0OZwzzJKex74tKRx PXlqqBDQYGMpVa+1jNF/r17lx4/sk2C8Ev9F1ak4VGSmysE2/OobjpdEB/QZjpllNpia M7Wh7khK+cEU7mszX0CxcuiSYzRcuU1P5vebs9Nja3qecLR9A9/K6DXb9du+czjqZrwV YYKQ== X-Gm-Message-State: AIkVDXJXFjCUXKjcFEVNAjuc6+7UQJ0sgTT6llGblxl7cYFBhSu/VLUK8r6emIaLTU+p2A== X-Received: by 10.202.81.139 with SMTP id f133mr2789764oib.215.1481922039149; Fri, 16 Dec 2016 13:00:39 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: Bug in RPROMPT code? From: Nicholas Sterling In-Reply-To: <3407891481890058@web30o.yandex.ru> Date: Fri, 16 Dec 2016 15:00:37 -0600 Cc: "zsh-workers@zsh.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <3407891481890058@web30o.yandex.ru> To: "Nikolay Aleksandrovich Pavlov (ZyX)" X-Mailer: Apple Mail (2.3251) Ah, go it. Thanks, Nikolay. Nicholas > On Dec 16, 2016, at 6:07 AM, Nikolay Aleksandrovich Pavlov (ZyX) = wrote: >=20 > 16.12.2016, 14:33, "Nicholas Sterling" : >> Hi folks. Is this a bug? When I use %S%s to make the RPROMPT = inverse video, zsh leaves a space at the end. Without inverse video, it = is flush with the margin. Is it possible that the calculation to figure = out at which column to start the RPROMPT is not taking into account that = %s is non-printing? >> =20 >> = >> =20 >> This is obviously not critical, but I thought you would want to know. >> =20 >> Nicholas > =20 > RPROMPT should always be shifted by default, behaviour is controlled = by $ZLE_RPROMPT_INDENT which defaults to 1. > =20 > Setting it to zero does not work well, see attached screenshot = (screenshot was done in `zsh -f`). Note that on screenshot you see = cursor right after `%` after zeroing ZLE_RPROMPT_INDENT, while it should = be aligned with `R`, `R` and `Z`, but space is left both with and = without inverse by default. > =20 > >