diff --git a/builtin_complete.cpp b/builtin_complete.cpp index f0eb6e1b1..e306c739c 100644 --- a/builtin_complete.cpp +++ b/builtin_complete.cpp @@ -173,14 +173,16 @@ static void builtin_complete_add(const wcstring_list_t &cmd, static void builtin_complete_remove3(const wchar_t *cmd, int cmd_type, wchar_t short_opt, - const wcstring_list_t &long_opt) + const wcstring_list_t &long_opt, + int long_mode) { for (size_t i=0; iremove_option(short_opt, long_opt); + bool delete_it = entry->remove_option(short_opt, long_opt, old_mode); if (delete_it) { /* Delete this entry */ diff --git a/complete.h b/complete.h index 45eb2dc02..b5ad98c5e 100644 --- a/complete.h +++ b/complete.h @@ -207,7 +207,8 @@ void complete_set_authoritative(const wchar_t *cmd, bool cmd_type, bool authorit void complete_remove(const wchar_t *cmd, bool cmd_is_path, wchar_t short_opt, - const wchar_t *long_opt); + const wchar_t *long_opt, + int long_mode); /** Find all completions of the command cmd, insert them into out.