fasten the refresh of Private and Normal tabs, on input

This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-11-23 13:46:19 +00:00
parent 5fa43e61e1
commit 0648da85bc
2 changed files with 3 additions and 3 deletions

View file

@ -388,7 +388,8 @@ class PrivateTab(ChatTab):
if key in self.key_func: if key in self.key_func:
self.key_func[key]() self.key_func[key]()
return False return False
return self.input.do_command(key) self.input.do_command(key)
return False
def on_enter(self): def on_enter(self):
""" """
@ -637,7 +638,7 @@ class ConversationTab(ChatTab):
self.key_func[key]() self.key_func[key]()
return False return False
self.input.do_command(key) self.input.do_command(key)
return True return False
def on_enter(self): def on_enter(self):
""" """

View file

@ -468,7 +468,6 @@ class TextWin(Win):
txt = txt[1:] txt = txt[1:]
first = False first = False
return lines return lines
return lines[-len(messages):] # return only the needed number of lines
def refresh(self, room): def refresh(self, room):
""" """