mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Make funced properly handle an invalid number of arguments
Fixes https://github.com/fish-shell/fish-shell/issues/780
This commit is contained in:
parent
09b0213738
commit
825a7311ea
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ function funced --description 'Edit function definition'
|
|||
set -e argv[1]
|
||||
end
|
||||
|
||||
if begin; set -q funcname[2]; or not test "$funcname[1]"; end
|
||||
if test (count $funcname) -ne 1
|
||||
set_color red
|
||||
_ "funced: You must specify one function name
|
||||
"
|
||||
|
|
Loading…
Reference in a new issue