1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

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