Closed LangLangBart closed 5 months ago
When a user runs the command below and executes the z4h-fzf-history widget, an error is encountered.
z4h-fzf-history
To reproduce:
Run
fc -p =(print -r -- 'echo デ')
Press ⌃ Control + R to execute the z4h-fzf-history widget
Notice the error
z4h-fzf-history:133: no matches found: echo \M-c\n
Prepending noglob or unsetting either the nomatch or glob option prevents the error.
noglob
nomatch
glob
--- a/fn/z4h-fzf-history +++ b/fn/z4h-fzf-history @@ -131,5 +131,5 @@ local preview='printf "%s" {} | command cut -f2- -d'$'\1' unsetopt pipe_fail { - (( $#history )) && printf '%s\000' "${history[@]}" + (( $#history )) && noglob printf '%s\000' "${history[@]}" } | { {
Related: https://github.com/junegunn/fzf/pull/3855
Thanks!
I reported this zsh bug upsteam: https://www.zsh.org/mla/workers/2024/msg00513.html
When a user runs the command below and executes the
z4h-fzf-history
widget, an error is encountered.To reproduce:
Run
Press ⌃ Control + R to execute the
z4h-fzf-history
widgetNotice the error
Possible solution
Prepending
noglob
or unsetting either thenomatch
orglob
option prevents the error.Related: https://github.com/junegunn/fzf/pull/3855