summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-08-29 10:30:25 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-08-29 10:30:25 +0200
commit88b65fe3c21982c166443203d7c9a5a1727622d5 (patch)
tree9eb43d5731c863a046d19222fd8579aa72da44b0 /src/core
parentd0b3d4fffe946158d6cca839f9e8bac2f32aa02e (diff)
downloadweechat-88b65fe3c21982c166443203d7c9a5a1727622d5.zip
Add new option weechat.look.prefix_buffer_align_max
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-config.c9
-rw-r--r--src/core/wee-config.h1
2 files changed, 9 insertions, 1 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index 89ea50291..ede6068c2 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -93,6 +93,7 @@ struct t_config_option *config_look_prefix[GUI_CHAT_NUM_PREFIXES];
struct t_config_option *config_look_prefix_align;
struct t_config_option *config_look_prefix_align_max;
struct t_config_option *config_look_prefix_buffer_align;
+struct t_config_option *config_look_prefix_buffer_align_max;
struct t_config_option *config_look_prefix_suffix;
struct t_config_option *config_look_read_marker;
struct t_config_option *config_look_save_config_on_exit;
@@ -1369,13 +1370,19 @@ config_weechat_init_options ()
weechat_config_file, ptr_section,
"prefix_align_max", "integer",
N_("max size for prefix (0 = no max size)"),
- NULL, 0, 64, "0", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
+ NULL, 0, 128, "0", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
config_look_prefix_buffer_align = config_file_new_option (
weechat_config_file, ptr_section,
"prefix_buffer_align", "integer",
N_("prefix alignment for buffer name, when many buffers are merged "
"with same number (none, left, right (default))"),
"none|left|right", 0, 0, "right", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
+ config_look_prefix_buffer_align_max = config_file_new_option (
+ weechat_config_file, ptr_section,
+ "prefix_buffer_align_max", "integer",
+ N_("max size for buffer name, when many buffers are merged with same "
+ "number (0 = no max size)"),
+ NULL, 0, 128, "0", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
config_look_prefix_suffix = config_file_new_option (
weechat_config_file, ptr_section,
"prefix_suffix", "string",
diff --git a/src/core/wee-config.h b/src/core/wee-config.h
index b0f14f99b..c5624fd40 100644
--- a/src/core/wee-config.h
+++ b/src/core/wee-config.h
@@ -108,6 +108,7 @@ extern struct t_config_option *config_look_prefix[];
extern struct t_config_option *config_look_prefix_align;
extern struct t_config_option *config_look_prefix_align_max;
extern struct t_config_option *config_look_prefix_buffer_align;
+extern struct t_config_option *config_look_prefix_buffer_align_max;
extern struct t_config_option *config_look_prefix_suffix;
extern struct t_config_option *config_look_read_marker;
extern struct t_config_option *config_look_save_config_on_exit;