aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2021-03-06 14:20:40 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2021-03-06 14:20:40 +0100
commitbf9ef6f4bcd580a9b4ba858537d0a99cae7bb87e (patch)
tree712436477f303eef0d8c67a2fa5a2b3947d6a1f5
parent86b2f0d2c0e623855ddc3f60a19849f1b88c35ef (diff)
downloadwee-slack-bf9ef6f4bcd580a9b4ba858537d0a99cae7bb87e.tar.gz
Clear last_line_from when clearing buffer
Fixes a bug where the first line would use prefix_same_nick after reprinting messages if the first and last message were from the same person.
-rw-r--r--wee_slack.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index ba0728e..7ae1c5b 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1608,6 +1608,7 @@ class SlackChannelCommon(object):
def reprint_messages(self, history_message=False, no_log=True, force_render=False):
if self.channel_buffer:
w.buffer_clear(self.channel_buffer)
+ self.last_line_from = None
for message in self.visible_messages.values():
self.prnt_message(message, history_message, no_log, force_render)
if (self.identifier in self.pending_history_requests or