Add a missing nick size bound, which caused text to overflow

for nicks with length > 10 and messages longer than one line, it would
overflow on the line below everytime.
This commit is contained in:
mathieui 2015-07-16 23:36:16 +02:00
parent 310d6630dc
commit 007459810a
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -142,11 +142,13 @@ class TextBuffer(object):
ret_val = None
show_timestamps = config.get('show_timestamps')
nick_size = config.get('max_nick_length')
for window in self.windows: # make the associated windows
# build the lines from the new message
nb = window.build_new_message(msg, history=history,
highlight=highlight,
timestamp=show_timestamps)
timestamp=show_timestamps,
nick_size=nick_size)
if ret_val is None:
ret_val = nb
if window.pos != 0: