From 007459810a954b429b936bc1fcbb1e61ad9711a2 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 16 Jul 2015 23:36:16 +0200 Subject: 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. --- src/text_buffer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/text_buffer.py b/src/text_buffer.py index 6bc3ee23..dd5bc58a 100644 --- a/src/text_buffer.py +++ b/src/text_buffer.py @@ -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: -- cgit v1.2.3