From 1b3427acd9fb01ff2816304c1dc6db6c945e9661 Mon Sep 17 00:00:00 2001 From: Peter Ammon Date: Sun, 15 Jan 2012 00:25:21 -0800 Subject: 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. --- parse_util.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'parse_util.cpp') 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; } /* -- cgit v1.2.3