From 4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 9 Mar 2012 22:45:41 +0100 Subject: [PATCH] Fixes #2339 --- src/tabs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tabs.py b/src/tabs.py index 6cf13b96..7a77a0f4 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -533,7 +533,10 @@ class ChatTab(Tab): self.input.refresh() def get_conversation_messages(self): - return self._text_buffer.messages + if self.text_win.pos: + return self._text_buffer.messages[:-self.text_win.pos] + else: + return self._text_buffer.messages def command_say(self, line): raise NotImplementedError