fix: crash on ffmpeg -i
Some checks failed
macOS compability / test (push) Has been cancelled
Zsh compability / test (5.3.1) (push) Has been cancelled
Linux compability / test (archlinux:latest) (push) Has been cancelled
Linux compability / test (ubuntu:latest) (push) Has been cancelled
Zsh compability / test (5.4.2) (push) Has been cancelled
Zsh compability / test (5.5.1) (push) Has been cancelled
Zsh compability / test (5.6.2) (push) Has been cancelled
Zsh compability / test (5.7.1) (push) Has been cancelled
Zsh compability / test (5.8) (push) Has been cancelled
Zsh compability / test (5.9) (push) Has been cancelled

close #176
This commit is contained in:
Aloxaf 2026-06-04 13:42:55 +08:00
parent e394092c17
commit 24105b1571
No known key found for this signature in database
GPG key ID: 0F8D23F44B277E02

View file

@ -138,7 +138,13 @@ builtin unalias -m '[^+]*'
# must run with user options; don't move `emulate -L zsh` above this line
(( $+builtins[fzf-tab-compcap-generate] )) && fzf-tab-compcap-generate -i
COLUMNS=500 _ftb__main_complete "$@" || ret=$?
# Work around zsh's non-reentrant static pattern buffer. SIGCHLD can refresh
# ZLE while a completer is matching a parameter pattern; prompt expansion
# during that refresh can overwrite the active pattern.
() {
setopt localoptions no_monitor no_notify
COLUMNS=500 _ftb__main_complete "$@"
} "$@" || ret=$?
(( $+builtins[fzf-tab-compcap-generate] )) && fzf-tab-compcap-generate -o
emulate -L zsh -o extended_glob