summaryrefslogtreecommitdiff
path: root/src/core/wee-config-file.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-12-17 09:54:46 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-12-17 09:54:46 +0100
commit4043ca3d38df247850e3f95fa5b8c3a14140c23e (patch)
treea7e8b009f26a0f6040094e1ae4990161ab10a59f /src/core/wee-config-file.c
parentf2c9961a21ad56cc5f6440e2dd661a588188c149 (diff)
downloadweechat-4043ca3d38df247850e3f95fa5b8c3a14140c23e.zip
Allow use of color pair number in color options and in API function "weechat_color"
Diffstat (limited to 'src/core/wee-config-file.c')
-rw-r--r--src/core/wee-config-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c
index 65fd6d021..2d4a08079 100644
--- a/src/core/wee-config-file.c
+++ b/src/core/wee-config-file.c
@@ -1286,8 +1286,7 @@ config_file_option_set (struct t_config_option *option, const char *value,
}
else
{
- gui_color_assign (&value_int, value);
- if ((value_int >= 0) && (value_int <= num_colors - 1))
+ if (gui_color_assign (&value_int, value))
new_value_ok = 1;
}
if (new_value_ok)