diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-06-12 21:28:34 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-06-12 21:28:34 +0000 |
commit | 981e12a669424d5685e11104ad03b82a2aac05cd (patch) | |
tree | f2de502f0fc81be2cd9a74816b0b5efc415b0012 /src/window.py | |
parent | 52c8cdb5ceb42f158d2eebbc3339ecbcb3ed523f (diff) | |
download | poezio-981e12a669424d5685e11104ad03b82a2aac05cd.tar.gz poezio-981e12a669424d5685e11104ad03b82a2aac05cd.tar.bz2 poezio-981e12a669424d5685e11104ad03b82a2aac05cd.tar.xz poezio-981e12a669424d5685e11104ad03b82a2aac05cd.zip |
fixed #1482
Diffstat (limited to 'src/window.py')
-rw-r--r-- | src/window.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/window.py b/src/window.py index 6b6ad8db..6334fb2c 100644 --- a/src/window.py +++ b/src/window.py @@ -129,11 +129,8 @@ class RoomInfo(Win): def compare_room(a, b): return a.nb - b.nb self.win.erase() - try: - self.win.addnstr(0, 0, current.name+" [", self.width - ,curses.color_pair(1)) - except: - pass + self.win.addnstr(0, 0, current.name+" [", self.width + ,curses.color_pair(1)) sorted_rooms = sorted(rooms, compare_room) for room in sorted_rooms: if current == room: @@ -212,7 +209,7 @@ class TextWin(Win): txt[:limit], message.color, offset) lines.append(line) - txt = txt[limit+1:] + txt = txt[limit:] first = False return lines[-len(messages):]# return only the needed number of lines |