From fce2fcba4f87d001217ba37986cecfa25011235f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 29 Dec 2022 12:00:28 +0100 Subject: core: add option weechat.look.chat_space_right (issue #1862) --- src/gui/curses/gui-curses-chat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gui') 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; + } } /* -- cgit v1.2.3