diff options
-rw-r--r-- | src/common/completion.c | 8 | ||||
-rw-r--r-- | weechat/src/common/completion.c | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/common/completion.c b/src/common/completion.c index a6ddb732a..836d96bf3 100644 --- a/src/common/completion.c +++ b/src/common/completion.c @@ -54,13 +54,19 @@ completion_init (t_completion *completion, void *server, void *channel) completion->base_command = NULL; completion->base_command_arg = 0; completion->arg_is_nick = 0; - completion->position = -1; completion->base_word = NULL; + completion->base_word_pos = 0; + completion->position = -1; completion->args = NULL; completion->direction = 0; completion->completion_list = NULL; completion->last_completion = NULL; + + completion->word_found = NULL; + completion->position_replace = 0; + completion->diff_size = 0; + completion->diff_length = 0; } /* diff --git a/weechat/src/common/completion.c b/weechat/src/common/completion.c index a6ddb732a..836d96bf3 100644 --- a/weechat/src/common/completion.c +++ b/weechat/src/common/completion.c @@ -54,13 +54,19 @@ completion_init (t_completion *completion, void *server, void *channel) completion->base_command = NULL; completion->base_command_arg = 0; completion->arg_is_nick = 0; - completion->position = -1; completion->base_word = NULL; + completion->base_word_pos = 0; + completion->position = -1; completion->args = NULL; completion->direction = 0; completion->completion_list = NULL; completion->last_completion = NULL; + + completion->word_found = NULL; + completion->position_replace = 0; + completion->diff_size = 0; + completion->diff_length = 0; } /* |