diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-03-29 20:26:49 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-03-29 20:26:49 +0100 |
commit | 5c1e5988f92c010eb17d156aacc0eabd8101022a (patch) | |
tree | f4993710265b7ca6f4c1b5980f6418d31306ef5b /src/gui/gui-line.c | |
parent | e2d708187ca50a91ff28f0bbdbfa11dbc86bbb3c (diff) | |
download | weechat-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.c | 2 |
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) |