From 1926ceea3d11cdf83fc2323aa512861e342e1eba Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 5 Jul 2016 22:46:00 +0100 Subject: Plugin unload remove cmd_acs and close window --- src/command/cmd_ac.c | 8 ++++++++ src/command/cmd_ac.h | 1 + 2 files changed, 9 insertions(+) (limited to 'src/command') 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); -- cgit 1.4.1-2-gfad0