From 7907fee3690cb0f9b5cb7d1f3c899c79eb34ebd3 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 6 Jul 2008 11:40:23 +0200 Subject: [PATCH] Fix display bug with prefix_align_max for highlighted lines --- src/gui/curses/gui-curses-chat.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index aeefc7471..ce6bfb59f 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -674,9 +674,11 @@ gui_chat_display_time_and_prefix (struct t_gui_window *window, { gui_chat_display_word (window, line, (prefix_highlighted) ? prefix_highlighted : line->prefix, - line->prefix + - gui_chat_string_real_pos (line->prefix, - length_allowed), + (prefix_highlighted) ? + prefix_highlighted + gui_chat_string_real_pos (prefix_highlighted, + length_allowed) : + line->prefix + gui_chat_string_real_pos (line->prefix, + length_allowed), 1, num_lines, count, lines_displayed, simulate); }