From 69855720200e888cbf34181bb56fb2c354c853ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 13 Jul 2019 16:06:08 +0200 Subject: tabs/basetabs: Move config.get out of for loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/tabs/basetabs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poezio/tabs') 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() -- cgit v1.2.3