summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-04-03 17:56:40 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-04-03 17:56:40 +0200
commit7c58018cb109cd50c9b80980adff9b7ff508c2c2 (patch)
treed554b826fca3711ad4f0fa8dc7722416a2ac45b9 /src/core
parent76b700a55552891d29bd09c83d1ab001bef4e449 (diff)
downloadweechat-7c58018cb109cd50c9b80980adff9b7ff508c2c2.zip
Add new option "weechat.completion.nick_add_space" (add space after nick completion, on by default)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-config.c7
-rw-r--r--src/core/wee-config.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index 239c26167..38c549663 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -145,6 +145,7 @@ struct t_config_option *config_color_nicklist_separator;
/* config, completion section */
struct t_config_option *config_completion_default_template;
+struct t_config_option *config_completion_nick_add_space;
struct t_config_option *config_completion_nick_completor;
struct t_config_option *config_completion_nick_first_only;
struct t_config_option *config_completion_nick_ignore_chars;
@@ -1605,6 +1606,12 @@ config_weechat_init_options ()
"codes and values)"),
NULL, 0, 0, "%n|%(irc_channels)", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL);
+ config_completion_nick_add_space = config_file_new_option (
+ weechat_config_file, ptr_section,
+ "nick_add_space", "boolean",
+ N_("add space after nick completion (when nick is not first word on "
+ "command line)"),
+ NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
config_completion_nick_completor = config_file_new_option (
weechat_config_file, ptr_section,
"nick_completor", "string",
diff --git a/src/core/wee-config.h b/src/core/wee-config.h
index 1ef819e14..f8754ae2e 100644
--- a/src/core/wee-config.h
+++ b/src/core/wee-config.h
@@ -147,6 +147,7 @@ extern struct t_config_option *config_color_nicklist_more;
extern struct t_config_option *config_color_nicklist_separator;
extern struct t_config_option *config_completion_default_template;
+extern struct t_config_option *config_completion_nick_add_space;
extern struct t_config_option *config_completion_nick_completor;
extern struct t_config_option *config_completion_nick_first_only;
extern struct t_config_option *config_completion_nick_ignore_chars;