diff options
author | mathieui <mathieui@mathieui.net> | 2015-07-16 23:36:16 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-07-16 23:36:16 +0200 |
commit | 007459810a954b429b936bc1fcbb1e61ad9711a2 (patch) | |
tree | f72c8ced2c4697687a0e82ff2c4cdd81cace83cd /src | |
parent | 310d6630dcbb89f0df2b4014c12e871691e4155c (diff) | |
download | poezio-007459810a954b429b936bc1fcbb1e61ad9711a2.tar.gz poezio-007459810a954b429b936bc1fcbb1e61ad9711a2.tar.bz2 poezio-007459810a954b429b936bc1fcbb1e61ad9711a2.tar.xz poezio-007459810a954b429b936bc1fcbb1e61ad9711a2.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/text_buffer.py | 4 |
1 files changed, 3 insertions, 1 deletions
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: |