From fc697d5998ddaa7e3bc3da8cdae18f4660f1576b Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 31 Mar 2012 22:13:13 +0200 Subject: [PATCH] core: fix bad computation of prefix length when simulating display (this caused one or more empty lines at bottom of chat area) (bug was introduced in previous commit: 10df976e53a4bf131bc9905b30237e2ffeb33a9a) --- src/gui/curses/gui-curses-chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index fdd4b13c7..cbdedbe98 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -835,7 +835,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window, 1, num_lines, count, lines_displayed, simulate, CONFIG_BOOLEAN(config_look_color_inactive_prefix)); - if (chars_displayed < length_allowed) + if (!simulate && (chars_displayed < length_allowed)) extra_spaces = length_allowed - chars_displayed; } else