diff options
author | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-15 00:25:21 -0800 |
---|---|---|
committer | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-15 00:25:21 -0800 |
commit | 1b3427acd9fb01ff2816304c1dc6db6c945e9661 (patch) | |
tree | c24a451a041a96778f45dceb2a81bba86eff8b85 /parse_util.cpp | |
parent | 60d1ac4fec07320eed6bfb1c0f4729d57b06f79e (diff) |
Changes to make completions internalized scripts.
This about doubles the size of fish. These things are huge. We may not want to ship it like this.
Diffstat (limited to 'parse_util.cpp')
-rw-r--r-- | parse_util.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/parse_util.cpp b/parse_util.cpp index 00dd75d6..8ddf1a90 100644 --- a/parse_util.cpp +++ b/parse_util.cpp @@ -870,10 +870,12 @@ int parse_util_load( const wcstring &cmd, /* Figure out which builtin-scripts array to search (if any) */ const builtin_script_t *builtins = NULL; size_t builtin_count = 0; - if (path_var_name == L"fish_function_path") - { + if (path_var_name == L"fish_function_path") { builtins = internal_function_scripts; builtin_count = sizeof internal_function_scripts / sizeof *internal_function_scripts; + } else if (path_var_name == L"fish_complete_path") { + builtins = internal_completion_scripts; + builtin_count = sizeof internal_completion_scripts / sizeof *internal_completion_scripts; } /* |