Fix /help
This commit is contained in:
parent
ae51999a6f
commit
d7ffaa44a2
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ class CommandCore:
|
||||||
color = dump_tuple(get_theme().COLOR_HELP_COMMANDS)
|
color = dump_tuple(get_theme().COLOR_HELP_COMMANDS)
|
||||||
acc = []
|
acc = []
|
||||||
buff = ['Global commands:']
|
buff = ['Global commands:']
|
||||||
for name, command in enumerate(self.core.commands):
|
for name, command in self.core.commands.items():
|
||||||
if isinstance(command, Command):
|
if isinstance(command, Command):
|
||||||
acc.append(' \x19%s}%s\x19o - %s' % (
|
acc.append(' \x19%s}%s\x19o - %s' % (
|
||||||
color,
|
color,
|
||||||
|
@ -56,7 +56,7 @@ class CommandCore:
|
||||||
acc = []
|
acc = []
|
||||||
buff.append('Tab-specific commands:')
|
buff.append('Tab-specific commands:')
|
||||||
tab_commands = self.core.current_tab().commands
|
tab_commands = self.core.current_tab().commands
|
||||||
for name, command in enumerate(tab_commands):
|
for name, command in tab_commands.items():
|
||||||
if isinstance(command, Command):
|
if isinstance(command, Command):
|
||||||
acc.append(' \x19%s}%s\x19o - %s' % (
|
acc.append(' \x19%s}%s\x19o - %s' % (
|
||||||
color,
|
color,
|
||||||
|
|
Loading…
Reference in a new issue