From e016305c2bea51c9bd2ccc8d2571f7fcea672079 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 11 Jan 2011 19:56:40 +0100 Subject: And fix the on_enter again (for commands) --- src/tabs.py | 4 +--- src/windows.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/tabs.py b/src/tabs.py index 0a16b71a..f1efdc72 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -246,9 +246,7 @@ class ChatTab(Tab): def on_enter(self): txt = self.input.key_enter() - if not Tab.on_enter(self): - if txt.startswith('//'): - txt = txt[1:] + if not Tab.on_enter(self, txt): self.command_say(txt) def command_say(self, line): diff --git a/src/windows.py b/src/windows.py index 2bfbdec6..0c97a8db 100644 --- a/src/windows.py +++ b/src/windows.py @@ -704,7 +704,6 @@ class Input(Win): return len(self.text) == 0 def resize(self, height, width, y, x, stdscr): - self._resize(height, width, y, x, stdscr) self._win.erase() self.addnstr(0, 0, self.text, self.width-1) -- cgit v1.2.3