diff --git a/mitterlib/ui/ui_zork.py b/mitterlib/ui/ui_zork.py index 0d447ee..591389f 100644 --- a/mitterlib/ui/ui_zork.py +++ b/mitterlib/ui/ui_zork.py @@ -74,7 +74,7 @@ class Interface(cmd.Cmd): if line == 'current': pass elif line == 'next': - if self._cursor + 1 > len(self._message): + if self._cursor + 1 >= len(self._messages): print 'There is no next message.' print return