summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-11-23 13:46:19 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-11-23 13:46:19 +0000
commit0648da85bc6aa4b96beb65577377e6c9671ec138 (patch)
tree988713164c361a5748d4f8fafa517d9f9aa2e2e6
parent5fa43e61e191c47f2d2c10eddedd4d1efa27ca73 (diff)
downloadpoezio-0648da85bc6aa4b96beb65577377e6c9671ec138.tar.gz
poezio-0648da85bc6aa4b96beb65577377e6c9671ec138.tar.bz2
poezio-0648da85bc6aa4b96beb65577377e6c9671ec138.tar.xz
poezio-0648da85bc6aa4b96beb65577377e6c9671ec138.zip
fasten the refresh of Private and Normal tabs, on input
-rw-r--r--src/tab.py5
-rw-r--r--src/windows.py1
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tab.py b/src/tab.py
index 85a6de75..8ecbb637 100644
--- a/src/tab.py
+++ b/src/tab.py
@@ -388,7 +388,8 @@ class PrivateTab(ChatTab):
if key in self.key_func:
self.key_func[key]()
return False
- return self.input.do_command(key)
+ self.input.do_command(key)
+ return False
def on_enter(self):
"""
@@ -637,7 +638,7 @@ class ConversationTab(ChatTab):
self.key_func[key]()
return False
self.input.do_command(key)
- return True
+ return False
def on_enter(self):
"""
diff --git a/src/windows.py b/src/windows.py
index 0356c813..e6d77f1c 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -468,7 +468,6 @@ class TextWin(Win):
txt = txt[1:]
first = False
return lines
- return lines[-len(messages):] # return only the needed number of lines
def refresh(self, room):
"""