From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27952 invoked from network); 4 Oct 2022 07:24:58 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 Oct 2022 07:24:58 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1664868298; b=c2cwjBpT4CBJgtwmRkxVgTRDJokGkD3hVnjA9a1ZJ2LaHjHWN+bvOPRRTd6HgKtaBHN5kC0ODo 9jJEJ8iQeB+/GKHAFciNd7uTcs8QhwAc3NYNR3couXF+R0wcwy4g/S6EdW44U1Oo5MCewIcxjg VFo4qL9oBkLGun8YPiC5gzuIx7ad2dEiLruqYy2/QZs/GvFGMJQwcE+2/J0zzjuqz9QeQggcfr +ZKOdfhRjTz8Gpw7HCWLuc2rwljUUCtRnU3awBYFajLLBDk+643KLqvPVbA3naN5NVHAd23wtJ 51yRJKIrT5SJ+UNfoD6oPnQCuEuEXIxRO/A2bG8fthOwdQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-pf1-f177.google.com) smtp.remote-ip=209.85.210.177; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1664868298; bh=vU2zCbzy98iXrHV6HVFYJ9tDffBiyZV7FZjOo582jsE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=SVQz2r0DcUi4cxz8evz+1f0poZn1uPFfx928YWViBbdMo1U7gaK4Ou3hIaudAiPDV3sGpIjMuf b2DdIcP93huHJh2JTIl8F0YarcO9lw+Dnu67rnc+aI70nJofEXtykHiMZNa9prOEL9RJiDwXA5 fwowoJJLv/uV89CK5LC4AB1WRgSB59MzfxW1zsPoaXtDFtL1RRs9VQfFjrDLoitxkdjoiRff0i EfUbZX00/JgKdw32Yip4+7BrwC/uOVqVs9Y23UJh69fCtiCm9ej2ENCV8SkaJm40BYgmUuQA4B pXbHZnDYpbP5ByxfZ4VHSkpbkghFUWdEDV541sHdJMwb7A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=g2Y2gGYR7ITlRcGwndIWnyADUZA3a0lt/p50Qd54eNw=; b=OKmi0KixHiisqEIQyxW+IlBrsH NMr05hIkfNVK42IAbq5u6xidKlhdtbfI56CnhmgLMssV+XavPYfC60x6no9/YFUU49U+tFg96tkD/ 1DrYxaR8LLZd5nC1ujmhmIsmfz7XcogQhwDm5SrxClfcZNPMxIJsCALDj36tFP1lOYL/SdIlKyoNH tzATQX0vH5aD0REreyzNPS43EKmU4rIaDPly6biTMTWVfVJa1C637jQOH8oQzF2YO6V+K6uI898Mb dwj9yBCKbi1AsQL86aHf0zFnz/KVhgc0jLhCUhsVahgaLrPuek7aCnhdEGfSIIHAQmeWlGyPtNyLz 140z7i+w==; Received: from authenticated user by zero.zsh.org with local id 1ofcIT-000MyF-VB; Tue, 04 Oct 2022 07:24:57 +0000 Authentication-Results: zsh.org; iprev=pass (mail-pf1-f177.google.com) smtp.remote-ip=209.85.210.177; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-pf1-f177.google.com ([209.85.210.177]:35380) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ofcIC-000McU-RG; Tue, 04 Oct 2022 07:24:42 +0000 Received: by mail-pf1-f177.google.com with SMTP id i6so12458596pfb.2 for ; Tue, 04 Oct 2022 00:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=g2Y2gGYR7ITlRcGwndIWnyADUZA3a0lt/p50Qd54eNw=; b=BkbCrfqCmi4myBAYpyGI5zFuWZ4mvpuJMrKv3zUK9d5uaMT1fUkNgA5fsVeoCnq+N4 Eksj990O1LAQCYBrrXUqXv8qSiWS1zTZk3lA0O0P03Um3HsLo5NoxNJlnHk0M53IHps0 ww1pdZBYA22zaPdjY8DBct/4H9v9NOyGnIqojQYYW2TRQcmOKNoxMpiTpyk8JrZm8Ar0 46LA320F+FOvswem5aELmpgqVRLJ7Hpi1c4tFyMHHc3t34T9u4zUd0lXidc7z/Q72vNT J5v/IMoOmRsr7doYRAeRDMdtZVVvFHYobjjdjRSGAE4giM11jwqlFdSkoKugDmYP6l2P /avQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=g2Y2gGYR7ITlRcGwndIWnyADUZA3a0lt/p50Qd54eNw=; b=BG2vbLcMMguFqt4W9/Nsj+DOog2DxqRScgtz/8qHHbRK13janLIJ52JoRK5yNoKXqj LARwm67P91InONkjCo0BrzNUBBa97NJ6soonaPYxkEsFipVnsLVOIeO8ygSyGm2zsgbM 2EXOQDxb1/hyLIJW/FPeUXXc93PEyzr4vzICDH3g4/L2m7giqntKRbEay3Q3vKOPR/zo V6Oj7jrBOJ8h3ekZYjeYNYUDer5EnwvqsKGHxvJr/tBfmJA6BBIqKx+ui3WK3oiCc+5v lai/R44mjjAd6AK5UHjUe/7viJ78XAVcU7LtQgZz857UzBpN2PQFnyNIzeGYYeXqbAS4 R46A== X-Gm-Message-State: ACrzQf2i5FNBBsFIThMc8hD9fC1L11FfF1NSZ1MECAfFYR/nFQE5g5+H VL91iesTXSoHPxybPE+OpvLvcs29Ci14Hx5T0Mb32fZv0tEMYw== X-Google-Smtp-Source: AMsMyM6qlXyT/r96mw75xkYNZ64j71faIFcPhliS9KWOmswssEAdUH+FCOgo/KB87VeGWoAlbls/6JJ3QOTUmagaC7Q= X-Received: by 2002:a63:6:0:b0:439:70ee:ca31 with SMTP id 6-20020a630006000000b0043970eeca31mr21576186pga.489.1664868278854; Tue, 04 Oct 2022 00:24:38 -0700 (PDT) MIME-Version: 1.0 From: Dan Neal Date: Tue, 4 Oct 2022 00:24:02 -0700 Message-ID: Subject: Bug in RPROMPT alighnment To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000005bec6905ea305a61" X-Seq: 50731 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --0000000000005bec6905ea305a61 Content-Type: text/plain; charset="UTF-8" When a hyperlink is included in the RPROMPT, zsh mistakenly thinks the RPROMPT is longer than it actually is. This results in the RPROMPT not being aligned all the way to the right but floats further to the middle. A minimal .zshrc demonstrating the bug: ``` RPROMPT=$(eval "echo '\e]8;;http://example.com\aThis is a link\e]8;;\a'") ``` The hyperlink specification is here: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda Please feel free to email me or cc me with any followup. --0000000000005bec6905ea305a61 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When a hyperlink is in= cluded in the RPROMPT, zsh mistakenly thinks the RPROMPT is longer than it = actually is.=C2=A0 This results in the RPROMPT not being aligned all the wa= y to the right but floats further to the middle.
A minimal .zshrc demonstrating t= he bug:
```
RPROMPT=3D$(eval = "echo '\e]8;;http://example.com= \aThis is a link\e]8;;\a'")
```

The hyperlink specificati= on is here:

Please feel free to email me or cc me with any followup.
--0000000000005bec6905ea305a61--