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=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,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 85116b1d for ; Sun, 9 Dec 2018 20:20:04 +0000 (UTC) Received: (qmail 1070 invoked by alias); 9 Dec 2018 20:19:51 -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: 43882 Received: (qmail 26529 invoked by uid 1010); 9 Dec 2018 20:19:51 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.210.44):SA:0(-2.0/5.0):. Processed in 0.846031 secs); 09 Dec 2018 20:19:51 -0000 X-Envelope-From: sgniazdowski@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=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6/fi4RYCfFgcWD1oBjKPV5sD7cSUS4l9irRU+qGZX0k=; b=UvfdYxKZT+oLxdMt0RUfmzEi/oHKHdveYgPv0KU7rXTSy1FYnINCpBSVKzYmKAypnf 4m9DsZPUBIGrF3em+N1AeQywAnFiW23tYr8hu8RhquTf+C2quS0PKTIXnuRT/30uF/fE TAtBG7/xzKS+uSfgU6/8I0ujkJUiS9p373vNwRGvVjGHS1LClYwNxSoXcK1mAn0OLOQR ddM+9xAIXuXL723O1UwbhmSPLfXvg7D7JXLEu9tLwEGfAMVkzMKKESliyy4y+ah9qmg5 YumZ9g+/qGsfWA9CtylnoKo79O4xK0q9QY+aYadQ1LKSqLtxehekpnWwSsf/D+gQGW26 YwXA== 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=6/fi4RYCfFgcWD1oBjKPV5sD7cSUS4l9irRU+qGZX0k=; b=LUKH/4zDQ9RjKBGsj1k154ygVY9et0We7n8opXJxw2rF9UKUbK2Fb6qFNoeFkcQKP5 2c75x8K9XjnXLaHAUEXtcuHKbXvp6qoo0RssbbbcA4KoPCUsbUBavWSvC1nyZw3nxrDC rCOdLSFh4MVFS/wY33CL7EeexD368Z0qYmWdIMwzKLtQpiVtoHPd7kKNEw1zeIQ9yn/F KJeqKHr+gUsLMggidMgQfvsvubSQOwLN/1NnxlydzOOjvBBvNUzBTjd+PdscJBVk4cGc tTGzrFS4bG4RFfCh6yWe40Mpo+fbDoLB9xZrrGIPcvrezA5iILQWBYnpAXEiemgj64YY P76w== X-Gm-Message-State: AA+aEWYn0D7GAA9EOjc1GkFiGh0ea40jOoHktZ8ZYy1ASEwYRKrv6J3G kqXAnze5S7PjG5zfC9PRxqmGqFoFQ11VpXGfCozcjQ== X-Google-Smtp-Source: AFSGD/VIEAvdmHyEXc0s39FlABiWjDA3yykZdl683e19V2ucVzuhS+FNz9ntaZBQ9befbvdDvM6p7Cy4RjYMB05dLoU= X-Received: by 2002:a9d:3bc7:: with SMTP id k65mr7194688otc.11.1544386787857; Sun, 09 Dec 2018 12:19:47 -0800 (PST) MIME-Version: 1.0 References: <1544168721.2479259.1601798392.35689542@webmail.messagingengine.com> <53005dd0750e99fb654f5708a6e256dbea6f899a.camel@ntlworld.com> In-Reply-To: From: Sebastian Gniazdowski Date: Sun, 9 Dec 2018 21:19:35 +0100 Message-ID: Subject: Re: [BUG] region_highlight+=( "$start $end standout" ) doesn't work as expected To: Peter Stephenson Cc: Zsh hackers list Content-Type: multipart/alternative; boundary="000000000000e2d975057c9c9109" --000000000000e2d975057c9c9109 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Maybe an automatic patch extraction got in the way - I meant the patch in file 256-....diff.txt that's attached in the other email. Niedz., 9.12.2018, 20:49: Peter Stephenson napisa=C5=82(a): > On Sun, 2018-12-09 at 20:20 +0100, Sebastian Gniazdowski wrote: > > I think I've already resolved this in the patch in email "[PATCH] Make > > 256 color codes be based on zle_highlight array, not on termcap". > > Ah, just those two lines as below? I hadn't realised that was the same > issue. I'm happy to commit them on the basis you've got the most > experience with this support, though I suppose I ought to give Oliver > the chance to comment. > > Certainly termcap is a bit defective in this sort of support, so > I can believe it. > > pws > > diff --git a/Src/prompt.c b/Src/prompt.c > index 568bfc2a9..50c51e479 100644 > --- a/Src/prompt.c > +++ b/Src/prompt.c > @@ -2067,6 +2067,11 @@ set_colour_attribute(zattr atr, int fg_bg, int > flags) > } else if (use_truecolor) { > ptr +=3D sprintf(ptr, "8;2;%d;%d;%d", colour >> 16, > (colour >> 8) & 0xff, colour & 0xff); > + } else if (use_truecolor) { > + ptr +=3D sprintf(ptr, "8;2;%d;%d;%d", colour >> 16, > + (colour >> 8) & 0xff, colour & 0xff); > + } else if (colour > 7 && colour <=3D 255) { > + ptr +=3D sprintf(ptr, "8;5;%d", colour); > } else > *ptr++ =3D colour + '0'; > strcpy(ptr, fg_bg_sequences[fg_bg].end); > > --000000000000e2d975057c9c9109--