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:
parent
310d6630dc
commit
007459810a
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue