diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-07-13 16:06:08 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-07-13 16:06:08 +0200 |
commit | 69855720200e888cbf34181bb56fb2c354c853ee (patch) | |
tree | 87d519d93698120c4b863b289a457c0054568a16 | |
parent | 12c5310e5b5c0da40f507c60bc9d1b28479b3bd9 (diff) | |
download | poezio-69855720200e888cbf34181bb56fb2c354c853ee.tar.gz poezio-69855720200e888cbf34181bb56fb2c354c853ee.tar.bz2 poezio-69855720200e888cbf34181bb56fb2c354c853ee.tar.xz poezio-69855720200e888cbf34181bb56fb2c354c853ee.zip |
tabs/basetabs: Move config.get out of for loop
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/tabs/basetabs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index feabbb1c..e57f0064 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -795,11 +795,11 @@ class ChatTab(Tab): text_buffer = self._text_buffer built_lines = [] message_count = 0 + timestamp = config.get('show_timestamps') + nick_size = config.get('max_nick_length') for message in text_buffer.messages: # Build lines of a message txt = message.txt - timestamp = config.get('show_timestamps') - nick_size = config.get('max_nick_length') nick = truncate_nick(message.nickname, nick_size) offset = 0 theme = get_theme() |