tabs/basetabs: Move config.get out of for loop

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-07-13 16:06:08 +02:00
parent 12c5310e5b
commit 6985572020
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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()