diff options
author | mathieui <mathieui@mathieui.net> | 2012-03-09 22:45:41 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-03-09 22:45:41 +0100 |
commit | 4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c (patch) | |
tree | b67bfcebdc55a0d979587a76bd5773312f52ad9b | |
parent | 163efe809ac507c889ea71b9c687a89a98f1ef59 (diff) | |
download | poezio-4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c.tar.gz poezio-4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c.tar.bz2 poezio-4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c.tar.xz poezio-4f423f1e3a0b66c9b1eb7b155f0d7d3ba80d882c.zip |
Fixes #2339
-rw-r--r-- | src/tabs.py | 5 |
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 |