diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-01-23 18:24:08 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-01-23 18:24:08 +0000 |
commit | 159fa3d806ef5fd1288675289ffa13d179bed13d (patch) | |
tree | 697bce5361c9689222ad555a192de961725b52ca /src/common/completion.c | |
parent | 07686bf69bce9eeddd279a3cbc485b484655aa84 (diff) | |
download | weechat-159fa3d806ef5fd1288675289ffa13d179bed13d.zip |
Improved completion for /set command (now adds '=' at the end)
Diffstat (limited to 'src/common/completion.c')
-rw-r--r-- | src/common/completion.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/completion.c b/src/common/completion.c index e28c4286f..1ca4ad225 100644 --- a/src/common/completion.c +++ b/src/common/completion.c @@ -199,9 +199,11 @@ completion_build_list (t_completion *completion, void *channel) { for (j = 0; weechat_options[i][j].option_name; j++) { + snprintf (option_name, sizeof (option_name), "%s =", + weechat_options[i][j].option_name); weelist_add (&completion->completion_list, &completion->last_completion, - weechat_options[i][j].option_name); + option_name); } } } @@ -210,7 +212,7 @@ completion_build_list (t_completion *completion, void *channel) { for (i = 0; weechat_options[CONFIG_SECTION_SERVER][i].option_name; i++) { - snprintf (option_name, sizeof (option_name), "%s.%s", + snprintf (option_name, sizeof (option_name), "%s.%s =", ptr_server->name, weechat_options[CONFIG_SECTION_SERVER][i].option_name); weelist_add (&completion->completion_list, |