summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-config.c8
-rw-r--r--src/core/wee-config.h1
-rw-r--r--src/gui/curses/gui-curses-chat.c7
3 files changed, 15 insertions, 1 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index f84c49626..f2613afad 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -101,6 +101,7 @@ struct t_config_option *config_look_buffer_search_regex;
struct t_config_option *config_look_buffer_search_where;
struct t_config_option *config_look_buffer_time_format;
struct t_config_option *config_look_buffer_time_same;
+struct t_config_option *config_look_chat_space_right;
struct t_config_option *config_look_color_basic_force_bold;
struct t_config_option *config_look_color_inactive_buffer;
struct t_config_option *config_look_color_inactive_message;
@@ -2885,6 +2886,13 @@ config_weechat_init_options ()
NULL, NULL, NULL,
&config_change_buffer_time_same, NULL, NULL,
NULL, NULL, NULL);
+ config_look_chat_space_right = config_file_new_option (
+ weechat_config_file, ptr_section,
+ "chat_space_right", "boolean",
+ N_("keep a space on the right side of chat area if there is a bar "
+ "displayed on the right (for both text and read marker)"),
+ NULL, 0, 0, "off", NULL, 0,
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
config_look_color_basic_force_bold = config_file_new_option (
weechat_config_file, ptr_section,
"color_basic_force_bold", "boolean",
diff --git a/src/core/wee-config.h b/src/core/wee-config.h
index 38017e294..a2efad374 100644
--- a/src/core/wee-config.h
+++ b/src/core/wee-config.h
@@ -153,6 +153,7 @@ extern struct t_config_option *config_look_buffer_search_regex;
extern struct t_config_option *config_look_buffer_search_where;
extern struct t_config_option *config_look_buffer_time_format;
extern struct t_config_option *config_look_buffer_time_same;
+extern struct t_config_option *config_look_chat_space_right;
extern struct t_config_option *config_look_color_basic_force_bold;
extern struct t_config_option *config_look_color_inactive_buffer;
extern struct t_config_option *config_look_color_inactive_message;
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c
index 40bc38577..0e41b3ac5 100644
--- a/src/gui/curses/gui-curses-chat.c
+++ b/src/gui/curses/gui-curses-chat.c
@@ -56,11 +56,16 @@
int
gui_chat_get_real_width (struct t_gui_window *window)
{
- if ((window->win_chat_width > 1)
+ if (CONFIG_BOOLEAN(config_look_chat_space_right)
+ && (window->win_chat_width > 1)
&& (window->win_chat_x + window->win_chat_width < gui_window_get_width ()))
+ {
return window->win_chat_width - 1;
+ }
else
+ {
return window->win_chat_width;
+ }
}
/*