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 24653 invoked from network); 13 Oct 2020 10:43:12 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Oct 2020 10:43:12 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1602585792; b=GqaQRuIht5K5LqxsnMvjYTrfOPgN/nRr0xKnTuA9RuVKbm+8M0l0bATAisrznPJn3/wZ5Uqs9i 6ZGP5loLPqG5iew/YVdJ17V6jsFtISvdrL26+sjSH6v1MuR1df2D0SZTYQHxAZdAArNS038tbV 0CIbCxdIza1yrYPeW6lguLchZ/M65sZKhv+p/2qKehNxkfTyEFErvIL8qn0hqG7Eb4kF8gGP2b QvveN/bK0hIaDV/Y5djk/Rhht5uqRcvBFuY8zO5ZNI4i6gj63KyB1aeOPEYqJME8ZABmzJAPQN 55B5W7+YItc5jqOVgQXZT8555XYAWjXauyi+UYa6HHoYSQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f49.google.com) smtp.remote-ip=209.85.167.49; dkim=pass header.d=gmail.com header.s=20161025 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-20200801; t=1602585792; bh=/bTK2T4K58wwnNhBGKAEsLamse2NzAPYTva+sdCMK6g=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=xKz3ikWYHcNium25Wo6R6j2wqKwK8u6ZSTmJXTgq+R+CNAIxIoqsgx9TLf29bF9AWwmc6pxxxF kNWCj6A8EZmEBjSzb/+LBJ+pwB2vjDBHJlvdyp4LAb3mtEx8dycghTldhSJxBEM1z3Oa6HJhL0 Iss9BSBii6LJIH+smQo1X+UU++CxcEb6FFNVs/vomrEdOBNyEL0j0PYGXk9tZypsxEWy+ki7d6 EqCt9f+mpRJsscO9RX/k+YhUcflPcIWGuG1LODImr23Na6WVDxAyr4uTKUq5hu4TdToyKyldM+ rD3HirOZFXyj0nXNVV1zG26piyV5n7gwXKuzpKqi8Og0+w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References: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; bh=RvxHqalIR8qTQCYqwcN/46LEkc/miDb+qD1/yBZxUAI=; b=CoQCdQoOgv97YGH6Cby9eA9dTH qAaSPhOnGPeiWf1t9LcthN4ugAgOPX0ST1YCs8Rkwp6T8u4QqjyEfmfqRCshZMmwDPyWJ1gf3yv1w PM8sIxJDoTVdwcqLLhFlYemliFDD/GfnDCYcD7fOadbmK4GhC7q1OJAJRcjOuFvNkk/hG1MLfkuP/ ScnijIE0CGYNlSP9mV9Ki0iOu+pUKvwHO+Mq7VQdDuDUDljFFpm4+/bXQ0bwmp5+HnwdjZDvSLLk+ tx4d4CtX/YXurY6XH66I78MKDe8cvV2ov0bybajqSr90sTsiIKNaSfKtoztmkkTa+H/YK4/4sL0wm h2uVridw==; Received: from authenticated user by zero.zsh.org with local id 1kSHlt-000OAk-Je; Tue, 13 Oct 2020 10:43:09 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f49.google.com) smtp.remote-ip=209.85.167.49; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f49.google.com ([209.85.167.49]:36182) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kSHlN-000No5-K9; Tue, 13 Oct 2020 10:42:38 +0000 Received: by mail-lf1-f49.google.com with SMTP id h6so21580687lfj.3 for ; Tue, 13 Oct 2020 03:42:37 -0700 (PDT) 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; bh=RvxHqalIR8qTQCYqwcN/46LEkc/miDb+qD1/yBZxUAI=; b=vKaCGb2C4jC2IFgP6bFoXud/PSO2ttH7etDqYUgTjYEGduEj3Try366Uz7kt9Q+6z0 rthx3TnBr6/7U91vJNQtieaMh4qMxwkVq1uf400JwHIc87IlwmRe53NJ1BVMO3kxMJqP FmSJtqv7xD52PpwSjr0Yh7NFFToSq1OuB6qaABaFX11TThkGZ1KLvhiFATXFci0wPicG pDmsJyc0ERNpnhhDZjiRFECJl6B8LhDLOBma4IQ3sIgi7uuic2lpjW6oqzLnLWSBDss6 j1WwJW0S2TsrPjbjDC4z81DCkrFhKKi09VNbZTzb1DiYC3uWvfLoYXq7Dr5Q9YX4KlCP w34w== 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; bh=RvxHqalIR8qTQCYqwcN/46LEkc/miDb+qD1/yBZxUAI=; b=AWhD5FNrfOXFtt6ToJx4AZcECpHbFEdjiBGQ2MTZB0b/2qt54n9EQoi6uPLBTnHYl/ Y1nmoOA5aWQ3Y0RsTB4TPnyP5Exp+nLHiVEeO5LsS8etLYH+BBtoEi0nBSJzrZ1vM3pf gIOCKjVb3H1mAAd254e/3zeUmSTy81eq3Cc9Aixu9COa+ZymkH1RHc9Mrk7UO6OceJbl wu7M5bZFUzognrKx9yb25dOtIWTIrdA5df36gcTjuPO4XNr9IjCvx2VaGG/+ImTtmj/y 6nmoZK+2ggbnU9WHIkHRVWwSZ7Vt2+MIVgdnLpGdOSqkMaigZk6oNTVkmdgSQBwv946A /Mxw== X-Gm-Message-State: AOAM532BZw3PSmMhi0eFEgTdlwJdxw7TAJL4WSEygHhs+1zuSqPCP3v1 tECVTAxNLf0RFXSwvt9+025KdzAGFvyHr3JXzNVbXCII X-Google-Smtp-Source: ABdhPJyP0wNZ5TbVk8iCX17Lm8F6iizkQ0OYY/Swa/Bg+t/Eei5oi5vCAvf2kJBWh/aD3orZbS84qC1d8/keHllHDSo= X-Received: by 2002:a19:4286:: with SMTP id p128mr8991609lfa.5.1602585756320; Tue, 13 Oct 2020 03:42:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marlon Richert Date: Tue, 13 Oct 2020 13:42:25 +0300 Message-ID: Subject: Bug report: region_highlight converts `fg=default` to `none`, which is not the same To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="000000000000ba499e05b18b129b" X-Seq: 26099 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --000000000000ba499e05b18b129b Content-Type: text/plain; charset="UTF-8" Hi there, Zsh devs! I am using Zsh 5.8 with `zsh-syntax-highlighting`. I want my paths to be blue, but I want the slashes in each path to be my terminal's default text color. I've configured `zsh-syntax-highlighting` to do so and it correctly puts, for example, ``` region_highlight=( '0 2 fg=10' '3 16 fg=4' '3 4 fg=default' '9 10 fg=default' ) ``` where `3 16` is the path I'm trying to `cd` to and `3 4` plus `9 10` are the positions of slashes in the path. However, after this assignment occurs, when I `print -r "${(q+)region_highlight[@]}"`, I get as output ``` '0 2 fg=10' '3 16 fg=4' '3 4 none' '9 10 none' ``` and when the ZLE highlights the line, the slashes are rendered in the same blue color as the rest of the path. If I use any other `fg` value than ` default`, then the slashes are colored correctly. This seems like incorrect behavior to me, on two accounts: 1. It seems incorrect to convert `fg=default` to `none`. From reading the [documentation]( http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting), `none` is not supposed to be the same as `fg=default`. 2. It also seems incorrect to me that `none` effectively does nothing at all. According to the documentation, `none` should mean that > No highlighting is applied to the given context. Instead, `none` just appears to do nothing at all, which seems useless to me; if I don't want to change the highlighting of that part of the line, then I can just not add a spec for it. Do you agree and could someone be so kind as to fix this? :) Cheers, Marlon --000000000000ba499e05b18b129b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi there, Zsh = devs!

I am using Zsh 5.8 with `= zsh-syntax-highlighting`.=C2=A0I want my paths to be blue, but I wan= t the slashes in each path to be my terminal's default text color. I= 9;ve configured `zsh-syntax-highlighting` t= o do so and it correctly puts, for example,

```
region_highlight=3D(=C2=A0'0 2 fg=3D10= ' '3 16 fg=3D4' '3 4 fg=3Ddefault' '9 10 fg=3Ddefau= lt' )
```

where `3 16` is the path I'm trying to `cd` to and=C2=A0 `3 4` pl= us `9 10` are the positions of slashes in t= he path.

However, after this assignment occurs, wh= en I `print -r "${(q+)region_highlight[@]}&qu= ot;`, I get as output

```
'0 2 fg=3D10' '3 16 fg=3D4' '3 4 none= ' '9 10 none'
```

and when the ZLE highlights the line, the slashes are rendered in the same= blue color as the rest of the path. If I use any other `fg` value than `default`, the= n the slashes are colored correctly.

This seems li= ke incorrect behavior to me, on two accounts:

=C2= =A01. It seems incorrect to convert `fg=3Ddefault<= /font>` to `none`. From reading the [docume= ntation](http://zsh.sourceforge.net/D= oc/Release/Zsh-Line-Editor.html#Character-Highlighting), `none` is not supposed to be the same as `fg=3Ddefault`.

=C2=A02. It also s= eems incorrect to me that `none` effectivel= y does nothing at all. According to the documentation, `none` should mean that

=C2=A0 =C2=A0 = > No highlighting is applied to the given context.

<= div>=C2=A0 =C2=A0 Instead, `none` just appe= ars to do nothing at all, which seems useless to me; if I don't want to= change the highlighting of that part of the line, then I can just not add = a spec for it.

Do you agree and could someone be s= o kind as to fix this? :)

Cheers,

Marlon

--000000000000ba499e05b18b129b--