From d1a797205af8e3a016b3301592d27b17d79bdd48 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 17 Apr 2011 15:18:17 +0200 Subject: =?UTF-8?q?Fix=20the=20infinite=20loop=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/windows.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/windows.py b/src/windows.py index 57872993..25aaeb06 100644 --- a/src/windows.py +++ b/src/windows.py @@ -1340,7 +1340,7 @@ class RosterWin(Win): if y-self.start_pos+1 == self.height: break line = ' '*self.width - while y != self.height: + while y <= self.height: self.addstr(y, 0, line) y += 1 if self.start_pos > 1: @@ -1472,7 +1472,6 @@ class ContactInfoWin(Win): self.addstr(0, 0, '%s (%s)'%(jid, presence,), common.curses_color_pair(theme.COLOR_INFORMATION_BAR)) self.finish_line(theme.COLOR_INFORMATION_BAR) self.addstr(1, 0, 'Subscription: %s' % (contact.get_subscription(),)) - self.finish_line() if contact.get_ask(): if contact.get_ask() == 'asked': self.addstr(' Ask: %s' % (contact.get_ask(),), common.curses_color_pair(theme.COLOR_HIGHLIGHT_NICK)) -- cgit v1.2.3