fix the crash on '/' in the roster

This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-11-22 02:48:24 +00:00
parent 6ffafadbdd
commit d803d5f95a

View file

@ -506,7 +506,8 @@ class RosterInfoTab(Tab):
'/' is pressed, we enter "input mode" '/' is pressed, we enter "input mode"
""" """
curses.curs_set(1) curses.curs_set(1)
self.input = windows.CommandInput(1, self.width, self.height-1, 0, self.default_help_message, "", self.reset_help_message, self.execute_slash_command) self.input = windows.CommandInput("", self.reset_help_message, self.execute_slash_command)
self.input.resize(1, self.width, self.height-1, 0, self.core.stdscr)
self.input.do_command("/") # we add the slash self.input.do_command("/") # we add the slash
def reset_help_message(self, _=None): def reset_help_message(self, _=None):