summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.py b/src/window.py
index ac6c928d..0d42a88b 100644
--- a/src/window.py
+++ b/src/window.py
@@ -55,9 +55,11 @@ class UserList(Win):
except:
color = 1
self.win.attron(curses.color_pair(color))
- self.win.addstr(y, 1, user.nick)
+ self.win.addnstr(y, 1, user.nick, self.width-1)
self.win.attroff(curses.color_pair(color))
y += 1
+ if y == self.height:
+ break
self.win.refresh()
def resize(self, height, width, y, x, stdscr):