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 31968 invoked from network); 17 Oct 2022 11:55:18 -0000
Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368)
by inbox.vuxu.org with ESMTPUTF8; 17 Oct 2022 11:55:18 -0000
ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666007718;
b=qRPDsch+YIaYuQp9D+5husNtA0vtqmkS64xyS25wtpCTMKMk2MD0SA1UhQGIt9pnsgeSMU6hcT
u7RKJpNKY1KKupboP954U+gFIsMqZnBGj5JV/8NiwsgHimJlwPCpsVq6a7eh3Nx2uWoAgGW7Hv
zw41wAQDwhgC9Wov990CPK8HA4bq9FlO3N6lH5yTrjqL1k/kbSUqtoJtq1XNpkPlaz5SvfUej0
YY1hJXtlYSCtLABlXCB5K9wwSRxVR2oHinqw1rjIThDypjYiZJKHZxZg/r8FS+Zh8awNJ6zGRh
GmtqgfNn+tOvFU+FeR20YnS/Pr9r++Ka3Lc7TC1GECz2Rg==;
ARC-Authentication-Results: i=1; zsh.org;
iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1666007718;
bh=0YKw6DcBgLcfUxh6Fm7lGzvRs0WUOoxqu34KcpFnN8A=;
h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help:
List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:
References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature:
DKIM-Signature;
b=q37LfM627/A4uMoOsF3kQdscXDpkpLi82NS9CTKgkvHnOGadpfMk+x/Rq/7on2daTNjZbOb/vi
WTH1xKwmZ04kYzhEmGCEsE9nKp1+7q7U6B18wepNox0QXVQB7/3vnvFKfFCnDs28Gfb513Aewu
mS+Oj+nt5E5DZb7DE/91ElxmXaaiGs4X7koWZdIjFjSeEKxpgmaLHjVYCHXQZGxs0vyOB9fsMz
fLKlcb0XuCl1fLOrwBeStrfdiD7sLn0tdxwEPqzkb3BwGX2caDm+H/0DnlSqM7l7ob2IxawNwF
huoPXr6x9akL2Q91fT4JGH9t/ADeYlceAYYcbU8Ln5nXVg==;
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-Transfer-Encoding:
Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From:
Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID;
bh=CcuHWgRIU5tXFq0++LJDeRKDxuhTZrSNk0++IFPRZ9w=; b=KbL6b/3f7dZeMERKo+J6NHLihx
V+kTC6jV0qjZF8ZdBTtFuvEBMUVuyTIrFUco4yo4CGXO28WLQog1pn42qaB20aFUAwSoicPrL69PS
Tnsf7hm+i3sy/TE15XlynBVrHIXK/yeVshg0NZomfIapNhZSlWs/bVwQLuLmcW9p0FRshAqFKbwjk
4y6UPHpwjxKtaNe0X3wAyBeZTfcN/guBA868v6Pmh82GZod4++0sWopZPIUze09NrgLvkf4ZwUEDY
alCPmJ1QuFEnOeWmeNTReRC4bxXz1oDMADqHxFUdnfrVxUuZmlLs13lMu5e9qDd/5AkscqCx4MdoP
mQlNOfXg==;
Received: by zero.zsh.org with local
id 1okOiE-0005UF-Bj;
Mon, 17 Oct 2022 11:55:18 +0000
Authentication-Results: zsh.org;
iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
Received: from smtpq1.tb.ukmail.iss.as9143.net ([212.54.57.96]:51780)
by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
id 1okOhg-00057N-AN;
Mon, 17 Oct 2022 11:54:44 +0000
Received: from [212.54.57.81] (helo=smtp2.tb.ukmail.iss.as9143.net)
by smtpq1.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1)
(envelope-from
)
id 1okOhf-0007Jl-Ug
for zsh-workers@zsh.org; Mon, 17 Oct 2022 13:54:43 +0200
Received: from oxbe12.tb.ukmail.iss.as9143.net ([172.25.160.143])
by smtp2.tb.ukmail.iss.as9143.net with ESMTP
id kOhfo06lfmIDmkOhfoz0OB; Mon, 17 Oct 2022 13:54:43 +0200
X-Env-Mailfrom: p.w.stephenson@ntlworld.com
X-Env-Rcptto: zsh-workers@zsh.org
X-SourceIP: 172.25.160.143
X-CNFS-Analysis: v=2.4 cv=LoCBd1Rc c=1 sm=1 tr=0 ts=634d4283 cx=a_exe
a=pVlFXI3Q25jgZXAaIqG4JA==:117 a=1DWFKdCB1IcA:10 a=IkcTkHD0fZMA:10
a=ZjyAdWuDOD4A:10 a=q2GGsy2AAAAA:8 a=EHTXIVKfxYs1hHZAGQUA:9 a=QEXdDO2ut3YA:10
a=z9dJwno5l634igLiVhy-:22
X-Authenticated-Sender: p.w.stephenson@ntlworld.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com;
s=meg.feb2017; t=1666007683;
bh=0YKw6DcBgLcfUxh6Fm7lGzvRs0WUOoxqu34KcpFnN8A=;
h=Date:From:To:In-Reply-To:References:Subject;
b=S6fcbCqkx8TGClZTthFKJbPWfdfRxvUyMxB+4DBmbo+sKAAX7GsFdqd2+V8pzG13e
RP0I09DOIU0NJZLb8IOuvW1kbgLzLe36LTjmS6an9sJwVV81uF6FFJytf1DeQgQwMe
VQDgFNETsqFTHLvRaaLTV0/5LOm29vzH/caELDvDud9Ybf+AAwai99o+jVt1cb0jDj
yh+dIup4iV0qHCAMNd+L5KOsM+cEkyDSyLQTv0+3TIrztYL0jOmUCWUzsjihCbkGiM
l1tG+w3/KX5b8D0yiJBrNeNL7B+vgR7ni7VPCEOT+m5H7y+ezCmkSkbimaAtHPUJx+
wpcAvomaX3j1w==
Date: Mon, 17 Oct 2022 12:54:43 +0100 (BST)
From: Peter Stephenson
To: zsh workers
Message-ID: <1213847667.3052430.1666007683851@mail.virginmedia.com>
In-Reply-To:
References: <9184bbff-9e68-7b02-2595-3474b016dfff@eastlink.ca>
<4e4d53a2-226e-a0ae-a1f7-87619eaff155@eastlink.ca>
<782c7588-4b07-a651-ef83-2d36a7d1d568@eastlink.ca>
Subject: Re: line continuation with sed
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Normal
X-Mailer: Open-Xchange Mailer
X-Originating-IP: 147.161.224.167
X-Originating-Client: open-xchange-appsuite
X-CMAE-Envelope: MS4xfGG8asRbzr8tdVSIOgtISoIOMSYnZNuDR1rL/ENTMxnr7edbTBSVS70idz/etetuGJwgJX/sbLnSxOmdvQcepMD4bgJVu2r31JC1u3lLs7RtmkBAW8Is
mqChdQsTTM2sSJ88ehNN7xFMjSDsGSSfLJpgDQ6rWABH/AjaJL2CKiP1dm+bMRW5xel59PKdnJvBcRqvaMOwzJ0yBKSbWgHvJakx4De2GcGBAyzRRUuZb+3w
X-Seq: 50786
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:
> On 17/10/2022 05:20 Bart Schaefer wrote:
> show-trailing-space() {
> if [[ $BUFFER = *(' '|$' \n'*)
> || $PREBUFFER = *$' \n'* ]]
> then POSTDISPLAY=$'\u21a9'
> else unset POSTDISPLAY
> fi
> }
> zle -N show-trailing-space
> add-zle-hook-widget line-pre-redraw show-trailing-space
> add-zle-hook-widget history-line-set show-trailing-space
Noted while trying this out but otherwise unrelated.
pws
diff --git a/Functions/Misc/add-zle-hook-widget b/Functions/Misc/add-zle-hook-widget
index 4d8049083..4293a07dd 100644
--- a/Functions/Misc/add-zle-hook-widget
+++ b/Functions/Misc/add-zle-hook-widget
@@ -39,7 +39,7 @@ zstyle zle-hook types ${hooktypes#zle-}
# Relying on multifuncdef option here
function azhw:${^hooktypes} {
- local -a hook_widgets
+ local -a hook_widgets match mbegin mend
local hook
# Values of these styles look like number:name
# and we run them in number order
@@ -58,7 +58,7 @@ function azhw:${^hooktypes} {
# Redefine ourself with the setup left out
function add-zle-hook-widget {
- local -a hooktypes
+ local -a hooktypes match mbegin mend
zstyle -a zle-hook types hooktypes
# This part copied from add-zsh-hook