summaryrefslogtreecommitdiff
path: root/src/core/wee-config.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-11-12 16:09:14 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-11-12 16:09:14 +0100
commitc7a1a01d8fdb65282cd6e68af095618be8ffcc5a (patch)
treecac5da84e1010b0c365ae51057b54ccf4b58e3f2 /src/core/wee-config.c
parentc8cf55c291fd0f1e48a386db34df2ea21aa3dbda (diff)
downloadweechat-c7a1a01d8fdb65282cd6e68af095618be8ffcc5a.zip
core: add new option weechat.completion.base_word_until_cursor: allow completion in middle of words (enabled by default) (task #9771)
Diffstat (limited to 'src/core/wee-config.c')
-rw-r--r--src/core/wee-config.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index 7d1b9510d..00b2307ed 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -202,6 +202,7 @@ struct t_config_option *config_color_nicklist_offline;
/* config, completion section */
+struct t_config_option *config_completion_base_word_until_cursor;
struct t_config_option *config_completion_default_template;
struct t_config_option *config_completion_nick_add_space;
struct t_config_option *config_completion_nick_completer;
@@ -2427,6 +2428,12 @@ config_weechat_init_options ()
return 0;
}
+ config_completion_base_word_until_cursor = config_file_new_option (
+ weechat_config_file, ptr_section,
+ "base_word_until_cursor", "boolean",
+ N_("if enabled, the base word to complete ends at char before cursor; "
+ "otherwise the base word ends at first space after cursor"),
+ NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
config_completion_default_template = config_file_new_option (
weechat_config_file, ptr_section,
"default_template", "string",