summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-03-09 22:45:41 +0100
committermathieui <mathieui@mathieui.net>2012-03-09 22:45:41 +0100
commit4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c (patch)
treeb67bfcebdc55a0d979587a76bd5773312f52ad9b /src
parent163efe809ac507c889ea71b9c687a89a98f1ef59 (diff)
downloadpoezio-4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c.tar.gz
poezio-4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c.tar.bz2
poezio-4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c.tar.xz
poezio-4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c.zip
Fixes #2339
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py5
1 files changed, 4 insertions, 1 deletions
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