And fix the on_enter again (for commands)
This commit is contained in:
parent
a8630190fd
commit
e016305c2b
2 changed files with 1 additions and 4 deletions
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue