summaryrefslogtreecommitdiff
path: root/src/room.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/room.py')
-rw-r--r--src/room.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/room.py b/src/room.py
index b7cb8ed3..0863b209 100644
--- a/src/room.py
+++ b/src/room.py
@@ -42,13 +42,11 @@ class Room(object):
self.window = window
self.pos = 0 # offset
- def scroll_up(self, y_x, dist=14):
- y, x = y_x
- if len(self.messages) <= y:
- return
+ def scroll_up(self, dist=14):
+ # The pos can grow a lot over the top of the number of
+ # available lines, it will be fixed on the next refresh of the
+ # screen anyway
self.pos += dist
- if self.pos + y >= len(self.messages):
- self.pos = len(self.messages) - y+3
def scroll_down(self, dist=14):
self.pos -= dist