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)
This commit is contained in:
Sebastien Helleu 2012-03-31 22:13:13 +02:00
parent 10df976e53
commit fc697d5998

View File

@ -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