From f7706ff40090525fca2ba1b06930cccca095dc00 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 28 Jun 2008 11:15:33 +0200 Subject: [PATCH] Fix display bug with alignment for sublines when there's no prefix displayed in buffer --- src/gui/gui-chat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index be0091fa1..3ac626afb 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -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; } /*