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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20030 invoked from network); 11 Jan 2023 17:38:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Jan 2023 17:38:43 -0000 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:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:cc:Reply-To: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=tWuSGGhaTjm73Ce82q907X5+3DIF1o9BZFl1RHwj02U=; b=Cn6IpHV+Ch53NspYOaptRQ6p5n G7Rvt4gRMfnRSPj0Mn1WplBoJ3xohtCgqHjIcoRHVfEhhAm5oyf/XGZMTGPpPm2GrDrdnjXBjADd6 D/E6TSnHO1hFAUrVwu8x8EuGivmPN1lOOI8590CJb4Eexe4Wr+X+8yt4QmwQHdbI/ippT+Zapc3e8 M4ofUFpf0dAO4Mk4s1CrsyJXhqVyBBkJiAxKIw5JQC8eyrNhYElUrhR3dBqZfXhR/kiF0TdVOXQJC oY3eJODUW7iiBwc93ONU9BofBVAhPfs2jfGZfrfXg8g5VVY03AMTo4+RY0Ykux0m3tot5F2vj6bJy vvaMnSig==; Received: by zero.zsh.org with local id 1pFf3i-000MB5-Uk; Wed, 11 Jan 2023 17:38:42 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pFf3R-000LtU-L0; Wed, 11 Jan 2023 17:38:25 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.95) (envelope-from ) id 1pFf3R-000D1W-2s; Wed, 11 Jan 2023 18:38:25 +0100 cc: "Zsh Hackers' List" In-reply-to: From: Oliver Kiddle References: To: Vin Shelton Subject: Re: X04 Test Failure MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <50064.1673458705.1@hydra> Date: Wed, 11 Jan 2023 18:38:25 +0100 Message-ID: <50065-1673458705.084910@HXP5.Ziln.rZq4> X-Seq: 51297 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: Vin Shelton wrote: > Oliver - do you have a test update to reflect your region-highlighting changes? Sorry yes, forgot to recheck the tests following the smaller later patches. For some tests, the final 0m was not needed because ZLE is now tracking the state in one place only so this is optimised away. Most of them are due to 51289 where I removed the superfluous disabling of underline and standout after it turns all attributes off. Thanks for checking. Oliver diff --git a/Test/X04zlehighlight.ztst b/Test/X04zlehighlight.ztst index 6d9ca4a48..296635bf5 100644 --- a/Test/X04zlehighlight.ztst +++ b/Test/X04zlehighlight.ztst @@ -79,7 +79,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:region highlight - standout overlapping on other region_highlight entry ->0m27m24mtr7mu0me word2 word3 +>0mtr7mu0me word2 word3 zpty_start zpty_input 'rh_widget() { BUFFER="true"; region_highlight+=( "0 4 fg=green" ); }' @@ -90,7 +90,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:basic region_highlight with 8 colors ->0m27m24mCDE|32|true0m +>0mCDE|32|true zpty_start zpty_input 'rh_widget() { region_highlight+=( "0 4 fg=green memo=someplugin" ); typeset -p region_highlight }' @@ -145,7 +145,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:basic region_highlight with true-color (hex-triplets) ->0m27m24m38;2;4;8;16mtrue0m +>0m38;2;4;8;16mtrue zpty_start zpty_input 'zmodload zsh/nearcolor' @@ -157,7 +157,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:basic region_highlight with near-color (hex-triplets at input) ->0m27m24mCDE|3232|true0m +>0mCDE|3232|true zpty_start zpty_input 'rh_widget() { BUFFER="true"; region_highlight+=( "0 4 fg=green" ); rh2; }' @@ -169,7 +169,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:overlapping region_highlight with 8 colors ->0m27m24mCDE|32|tCDE|31|rCDE|32|ue0m +>0mCDE|32|tCDE|31|rCDE|32|ue zpty_start zpty_input 'rh_widget() { BUFFER="true"; region_highlight+=( "0 4 fg=#00cc00" ); rh2; }' @@ -181,7 +181,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:overlapping region_highlight with true-color ->0m27m24m38;2;0;204;0mt38;2;204;0;0mr38;2;0;204;0mue0m +>0m38;2;0;204;0mt38;2;204;0;0mr38;2;0;204;0mue zpty_start zpty_input 'zmodload zsh/nearcolor' @@ -194,7 +194,7 @@ zpty_line 1 p # the line of interest, preserving escapes ("p") zpty_stop 0:overlapping region_highlight with near-color (hex-triplets at input) ->0m27m24mCDE|340|tCDE|3160|rCDE|340|ue0m +>0mCDE|340|tCDE|3160|rCDE|340|ue zpty_start zpty_input 'f () { zle clear-screen; zle g -f nolast; BUFFER=": ${(q)LASTWIDGET}" }; zle -N f' @@ -205,7 +205,7 @@ zpty_line 1 p zpty_stop 0:zle $widgetname -f nolast ->0m27m24m0m27m24m: clear-screen +>0m0m: clear-screen %clean