mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-25 18:31:20 -03:00
Make function_add take the filename directly instead of a parser
This commit is contained in:
@@ -273,7 +273,7 @@ int builtin_function(parser_t &parser, io_streams_t &streams, const wcstring_lis
|
||||
d.props = props;
|
||||
d.events = std::move(opts.events);
|
||||
|
||||
function_add(std::move(d), parser);
|
||||
function_add(std::move(d), parser.libdata().current_filename);
|
||||
|
||||
// Handle wrap targets by creating the appropriate completions.
|
||||
for (const wcstring &wt : opts.wrap_targets) complete_add_wrapper(function_name, wt);
|
||||
|
||||
Reference in New Issue
Block a user