diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2016-01-16 22:42:14 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2016-01-16 22:42:14 -0800 |
commit | 766176443d6edbbd47f1dbe1080d9d1becf2b0c0 (patch) | |
tree | d8021e46acd13d2c6898cb5ab21de33f30a1e4d9 /src/complete.h | |
parent | 3552d073f62149ca908efbcb2ea5acae103ff382 (diff) |
Clean up completion removal
Rather than passing a triple of short, long, is_old, pass an option
as a string and then a type
Diffstat (limited to 'src/complete.h')
-rw-r--r-- | src/complete.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/complete.h b/src/complete.h index 38b56bc0..4972981f 100644 --- a/src/complete.h +++ b/src/complete.h @@ -205,12 +205,13 @@ void complete_set_authoritative(const wchar_t *cmd, bool cmd_type, bool authorit /** Remove a previously defined completion */ -void complete_remove(const wchar_t *cmd, +void complete_remove(const wcstring &cmd, bool cmd_is_path, - wchar_t short_opt, - const wchar_t *long_opt, - int long_mode); + const wcstring &option, + complete_option_type_t type); +/** Removes all completions for a given command */ +void complete_remove_all(const wcstring &cmd, bool cmd_is_path); /** Find all completions of the command cmd, insert them into out. */ |