summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-12-29 12:00:28 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-12-29 12:00:28 +0100
commitfce2fcba4f87d001217ba37986cecfa25011235f (patch)
treeeb9f108260d8fbf170a0e634c5dc6a1d6c2fb8ae /src/gui
parent45fdcc2eb452bba1e61868d5755218c44b1efef5 (diff)
downloadweechat-fce2fcba4f87d001217ba37986cecfa25011235f.zip
core: add option weechat.look.chat_space_right (issue #1862)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/curses/gui-curses-chat.c7
1 files changed, 6 insertions, 1 deletions
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;
+ }
}
/*