* Re: line continuation with sed
[not found] ` <CAH+w=7Z_VYr7_=dRdN9KXrrG=xFY+Sx5iEPBCyX2qkCEMk_+pw@mail.gmail.com>
@ 2022-10-17 11:54 ` Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2022-10-17 11:54 UTC (permalink / raw)
To: zsh workers
> On 17/10/2022 05:20 Bart Schaefer <schaefer@brasslantern.com> 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-17 11:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <9184bbff-9e68-7b02-2595-3474b016dfff@eastlink.ca>
[not found] ` <Y0ocNjoVIUo/zH3o@pug.qqx.org>
[not found] ` <a24ea038-0a73-cc86-25af-239738dd6de3@eastlink.ca>
[not found] ` <CAH+w=7Yp++F1A4JGtrp5cmXRah2dDgwuit_6aKDSoQTX+phuWA@mail.gmail.com>
[not found] ` <4e4d53a2-226e-a0ae-a1f7-87619eaff155@eastlink.ca>
[not found] ` <CAH+w=7Zmb8hO6WifZTO827O09Oq25dNKmq+2gNmUQW-xBvGvjA@mail.gmail.com>
[not found] ` <782c7588-4b07-a651-ef83-2d36a7d1d568@eastlink.ca>
[not found] ` <CAH+w=7Z_VYr7_=dRdN9KXrrG=xFY+Sx5iEPBCyX2qkCEMk_+pw@mail.gmail.com>
2022-10-17 11:54 ` line continuation with sed Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).