diff --git a/share/functions/funced.fish b/share/functions/funced.fish index acee5c1a9..3c2de0614 100644 --- a/share/functions/funced.fish +++ b/share/functions/funced.fish @@ -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 "