diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-06-08 20:29:38 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-06-08 20:29:38 -0700 |
commit | 825a7311ea6769687e92ee336342216fc71f0037 (patch) | |
tree | f8c6e305cdff205bdadfe0f4d47cb1ff5c801d8d /share/functions/funced.fish | |
parent | 09b02137380235faa946d9486a91b3e14a815a24 (diff) |
Make funced properly handle an invalid number of arguments
Diffstat (limited to 'share/functions/funced.fish')
-rw-r--r-- | share/functions/funced.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/funced.fish b/share/functions/funced.fish index acee5c1a..3c2de061 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 " |