summaryrefslogtreecommitdiff
path: root/src/fe-common/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-17 16:03:43 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-17 16:03:43 +0000
commit0762fbc945384aec4e5cb95626e3b55a89738766 (patch)
tree9d5ecef9564d06c21bedb0e6245045396390d559 /src/fe-common/core
parent8fa6ca5e61a19e65f0b35c20a332b45e7dfce1a1 (diff)
downloadirssi-0762fbc945384aec4e5cb95626e3b55a89738766.zip
"command complete" -> "complete command" so that it won't conflict with
/complete command .. also changed "word complete" to "complete word". git-svn-id: http://svn.irssi.org/repos/irssi/trunk@362 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core')
-rw-r--r--src/fe-common/core/completion.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c
index 2c46a010..77696826 100644
--- a/src/fe-common/core/completion.c
+++ b/src/fe-common/core/completion.c
@@ -140,7 +140,7 @@ char *word_complete(WINDOW_REC *window, const char *line, int *pos)
last_linestart = g_strdup(linestart);
want_space = TRUE;
- signal_emit("word complete", 5, &complist, window, word, linestart, &want_space);
+ signal_emit("complete word", 5, &complist, window, word, linestart, &want_space);
last_want_space = want_space;
}
@@ -340,7 +340,7 @@ static char *line_get_command(const char *line, char **args)
return cmd;
}
-static void sig_word_complete(GList **list, WINDOW_REC *window,
+static void sig_complete_word(GList **list, WINDOW_REC *window,
const char *word, const char *linestart, int *want_space)
{
const char *newword, *cmdchars;
@@ -394,7 +394,7 @@ static void sig_word_complete(GList **list, WINDOW_REC *window,
cmd = line_get_command(linestart+1, &args);
if (cmd != NULL) {
- signal = g_strconcat("command complete ", cmd, NULL);
+ signal = g_strconcat("complete command ", cmd, NULL);
signal_emit(signal, 5, list, window, word, args, want_space);
g_free(signal);
@@ -408,12 +408,12 @@ void completion_init(void)
complist = NULL;
last_linestart = NULL;
- signal_add("word complete", (SIGNAL_FUNC) sig_word_complete);
+ signal_add("complete word", (SIGNAL_FUNC) sig_complete_word);
}
void completion_deinit(void)
{
free_completions();
- signal_remove("word complete", (SIGNAL_FUNC) sig_word_complete);
+ signal_remove("complete word", (SIGNAL_FUNC) sig_complete_word);
}