Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: line continuation with sed
- X-seq: zsh-workers 50786
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: line continuation with sed
- Date: Mon, 17 Oct 2022 12:54:43 +0100 (BST)
- Archived-at: <https://zsh.org/workers/50786>
- Importance: Normal
- In-reply-to: <CAH+w=7Z_VYr7_=dRdN9KXrrG=xFY+Sx5iEPBCyX2qkCEMk_+pw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <9184bbff-9e68-7b02-2595-3474b016dfff@eastlink.ca> <Y0ocNjoVIUo/zH3o@pug.qqx.org> <a24ea038-0a73-cc86-25af-239738dd6de3@eastlink.ca> <CAH+w=7Yp++F1A4JGtrp5cmXRah2dDgwuit_6aKDSoQTX+phuWA@mail.gmail.com> <4e4d53a2-226e-a0ae-a1f7-87619eaff155@eastlink.ca> <CAH+w=7Zmb8hO6WifZTO827O09Oq25dNKmq+2gNmUQW-xBvGvjA@mail.gmail.com> <782c7588-4b07-a651-ef83-2d36a7d1d568@eastlink.ca> <CAH+w=7Z_VYr7_=dRdN9KXrrG=xFY+Sx5iEPBCyX2qkCEMk_+pw@mail.gmail.com>
> On 17/10/2022 05:20 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author