1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Fix display bug with alignment for sublines when there's no prefix displayed in buffer

This commit is contained in:
Sebastien Helleu
2008-06-28 11:15:33 +02:00
parent f75f7f64bc
commit f7706ff400
+2 -2
View File
@@ -391,8 +391,8 @@ gui_chat_get_line_align (struct t_gui_buffer *buffer, struct t_gui_line *line,
return gui_chat_time_length + 1 + CONFIG_INTEGER(config_look_prefix_align_max) +
length_suffix + 1;
else
return gui_chat_time_length + 1 + buffer->prefix_max_length +
length_suffix + 1;
return gui_chat_time_length + ((buffer->prefix_max_length > 0) ? 1 : 0) +
+ buffer->prefix_max_length + length_suffix + 1;
}
/*