about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-07-05 22:46:00 +0100
committerJames Booth <boothj5@gmail.com>2016-07-05 22:46:00 +0100
commit1926ceea3d11cdf83fc2323aa512861e342e1eba (patch)
treeb7ca4568ac0c841d94e960f567105eab55f54fc5 /src/command
parent82458c9d96a0d1a81b1d8d2b5232780fb653f2ae (diff)
downloadprofani-tty-1926ceea3d11cdf83fc2323aa512861e342e1eba.tar.gz
Plugin unload remove cmd_acs and close window
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_ac.c8
-rw-r--r--src/command/cmd_ac.h1
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);