about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-10-21 23:39:42 +0100
committerJames Booth <boothj5@gmail.com>2012-10-21 23:39:42 +0100
commitf419445d4dfb704180cf35094e6e3b0c638f053d (patch)
tree15b85ea5e43a9244cc320f6766b91feea1c2d484 /src
parent7a1c76fbb7303dc3db11ed12bfa11d0b406a49b4 (diff)
downloadprofani-tty-f419445d4dfb704180cf35094e6e3b0c638f053d.tar.gz
Renamed help autocompleter
Diffstat (limited to 'src')
-rw-r--r--src/command.c4
-rw-r--r--src/command.h4
-rw-r--r--src/input_win.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/command.c b/src/command.c
index a490770d..0248303d 100644
--- a/src/command.c
+++ b/src/command.c
@@ -402,13 +402,13 @@ cmd_reset_completer(void)
 
 // Command help
 char *
-help_complete(char *inp)
+cmd_help_complete(char *inp)
 {
     return p_autocomplete_complete(help_ac, inp);
 }
 
 void
-help_reset_completer(void)
+cmd_help_reset_completer(void)
 {
     p_autocomplete_reset(help_ac);
 }
diff --git a/src/command.h b/src/command.h
index 8912ecff..105af9f8 100644
--- a/src/command.h
+++ b/src/command.h
@@ -39,8 +39,8 @@ gboolean cmd_execute(const char * const command, const char * const inp);
 gboolean cmd_execute_default(const char * const inp);
 
 // command help
-char * help_complete(char *inp);
-void help_reset_completer(void);
+char * cmd_help_complete(char *inp);
+void cmd_help_reset_completer(void);
 GSList * cmd_get_basic_help(void);
 GSList * cmd_get_settings_help(void);
 GSList * cmd_get_status_help(void);
diff --git a/src/input_win.c b/src/input_win.c
index fb9fec38..1a9ae087 100644
--- a/src/input_win.c
+++ b/src/input_win.c
@@ -162,7 +162,7 @@ inp_get_char(int *ch, char *input, int *size)
 
             reset_search_attempts();
             reset_login_search();
-            help_reset_completer();
+            cmd_help_reset_completer();
             cmd_reset_completer();
         }
     }
@@ -373,7 +373,7 @@ _handle_edit(const int ch, char *input, int *size)
                 inp_cpy[i-6] = input[i];
             }
             inp_cpy[(*size) - 6] = '\0';
-            found = help_complete(inp_cpy);
+            found = cmd_help_complete(inp_cpy);
             if (found != NULL) {
                 auto_msg = (char *) malloc((6 + (strlen(found) + 1)) * sizeof(char));
                 strcpy(auto_msg, "/help ");