mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Don't wrap functions with themselves
Our weird %-expanding function wrappers around kill et all defined "--wraps" for the same name. As it turns out, fish follows that one, and executes the completion multiple times. I didn't notice because these tend to be rather quick on linux, but on macOS that's apparently a real issue. Fixes #5541. [ci skip]
This commit is contained in:
parent
afb9094b4c
commit
97f0cc9662
1 changed files with 5 additions and 5 deletions
|
@ -271,23 +271,23 @@ function __fish_expand_pid_args
|
|||
end
|
||||
end
|
||||
|
||||
function bg --wraps bg
|
||||
function bg
|
||||
builtin bg (__fish_expand_pid_args $argv)
|
||||
end
|
||||
|
||||
function fg --wraps fg
|
||||
function fg
|
||||
builtin fg (__fish_expand_pid_args $argv)
|
||||
end
|
||||
|
||||
function kill --wraps kill
|
||||
function kill
|
||||
command kill (__fish_expand_pid_args $argv)
|
||||
end
|
||||
|
||||
function wait --wraps wait
|
||||
function wait
|
||||
builtin wait (__fish_expand_pid_args $argv)
|
||||
end
|
||||
|
||||
function disown --wraps disown
|
||||
function disown
|
||||
builtin disown (__fish_expand_pid_args $argv)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue