summaryrefslogtreecommitdiff
path: root/src/gui/gui-line.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-03-29 20:26:49 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-03-29 20:26:49 +0100
commit5c1e5988f92c010eb17d156aacc0eabd8101022a (patch)
treef4993710265b7ca6f4c1b5980f6418d31306ef5b /src/gui/gui-line.c
parente2d708187ca50a91ff28f0bbdbfa11dbc86bbb3c (diff)
downloadweechat-5c1e5988f92c010eb17d156aacc0eabd8101022a.zip
core: fix alignment of lines in merged buffers (closes #43)
The bug happened when options weechat.look.prefix_align and weechat.look.prefix_buffer_align are set to "none".
Diffstat (limited to 'src/gui/gui-line.c')
-rw-r--r--src/gui/gui-line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c
index 505be7b10..174c94a06 100644
--- a/src/gui/gui-line.c
+++ b/src/gui/gui-line.c
@@ -276,7 +276,7 @@ gui_line_get_align (struct t_gui_buffer *buffer, struct t_gui_line *line,
{
if ((CONFIG_INTEGER(config_look_prefix_buffer_align) == CONFIG_LOOK_PREFIX_BUFFER_ALIGN_NONE)
&& (CONFIG_INTEGER(config_look_prefix_align) == CONFIG_LOOK_PREFIX_ALIGN_NONE))
- length_buffer = gui_chat_strlen_screen (gui_buffer_get_short_name (buffer)) + 1;
+ length_buffer = gui_chat_strlen_screen (gui_buffer_get_short_name (line->data->buffer)) + 1;
else
{
if (CONFIG_INTEGER(config_look_prefix_buffer_align) == CONFIG_LOOK_PREFIX_BUFFER_ALIGN_NONE)