summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/window.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.py b/src/window.py
index cf4d540e..980f8d51 100644
--- a/src/window.py
+++ b/src/window.py
@@ -265,7 +265,7 @@ class TextWin(Win):
# messages = room.messages[-self.height:]
lines = self.build_lines_from_messages(room.messages)
if room.pos != 0:
- lines = messages[-self.height-room.pos:-room.pos]
+ lines = lines[-self.height-room.pos:-room.pos]
else:
lines = lines[-self.height:]
y = 0