diff options
author | James Booth <boothj5@gmail.com> | 2016-07-05 22:46:00 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-07-05 22:46:00 +0100 |
commit | 1926ceea3d11cdf83fc2323aa512861e342e1eba (patch) | |
tree | b7ca4568ac0c841d94e960f567105eab55f54fc5 /src/command | |
parent | 82458c9d96a0d1a81b1d8d2b5232780fb653f2ae (diff) | |
download | profani-tty-1926ceea3d11cdf83fc2323aa512861e342e1eba.tar.gz |
Plugin unload remove cmd_acs and close window
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/cmd_ac.c | 8 | ||||
-rw-r--r-- | src/command/cmd_ac.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index da466b76..565ce336 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -787,6 +787,14 @@ cmd_ac_remove(const char *const value) } } +void +cmd_ac_remove_help(const char *const value) +{ + if (help_ac) { + autocomplete_remove(help_ac, value); + } +} + gboolean cmd_ac_exists(char *cmd) { diff --git a/src/command/cmd_ac.h b/src/command/cmd_ac.h index b294fcd5..637ebcf6 100644 --- a/src/command/cmd_ac.h +++ b/src/command/cmd_ac.h @@ -48,6 +48,7 @@ void cmd_ac_add_alias(ProfAlias *alias); void cmd_ac_add_alias_value(char *value); void cmd_ac_remove(const char *const value); +void cmd_ac_remove_help(const char *const value); void cmd_ac_remove_alias_value(char *value); gboolean cmd_ac_exists(char *cmd); |