diff options
author | Sanne Wouda <sanne.wouda@gmail.com> | 2015-03-11 14:14:56 +0100 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-04-06 00:10:55 -0700 |
commit | 73f344f41bd20c005a0f5b810dc20229392f2bf8 (patch) | |
tree | eadc9615a1f35dae8201e3d5232b60f40ff7d999 /function.h | |
parent | 9f8cec7f9e13f6a0cbf8e5e986c3dfbffac0be99 (diff) |
Revert 1349d12 and properly fix #213
As suggested by @ridiculousfish, when removing autoloaded functions, add them
to a tombstones set. These functions will never be autoloaded again in the
current shell, not even when the timestamp changes.
Tested as per comment 1 of #1033. `~/.config/fish/functions/ls.fish` contains
the function definition. `function -e ls` removes the redefined `ls` (and
reverts back to the built-in command). `touch .../ls.fish` does not cause the
function to be reloaded.
Diffstat (limited to 'function.h')
-rw-r--r-- | function.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -105,9 +105,6 @@ void function_init(); /** Add a function. definition_line_offset is the line number of the function's definition within its source file */ void function_add(const function_data_t &data, const parser_t &parser, int definition_line_offset = 0); -/** Removes a function from our internal table, returning true if it was found and false if not */ -bool function_remove_ignore_autoload(const wcstring &name); - /** Remove the function with the specified name. */ |