summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-08-11 22:38:00 +0200
committermathieui <mathieui@mathieui.net>2016-08-11 22:38:00 +0200
commitd7ffaa44a24c8c8e06af3dc42f9b0f1694885656 (patch)
treecea1c761c20c37a803f91abcc148011b1f03d819
parentae51999a6f004cfc20f5eb3b4ce289136193d779 (diff)
downloadpoezio-d7ffaa44a24c8c8e06af3dc42f9b0f1694885656.tar.gz
poezio-d7ffaa44a24c8c8e06af3dc42f9b0f1694885656.tar.bz2
poezio-d7ffaa44a24c8c8e06af3dc42f9b0f1694885656.tar.xz
poezio-d7ffaa44a24c8c8e06af3dc42f9b0f1694885656.zip
Fix /help
-rw-r--r--poezio/core/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 84b60a3e..c4a88c5a 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -43,7 +43,7 @@ class CommandCore:
color = dump_tuple(get_theme().COLOR_HELP_COMMANDS)
acc = []
buff = ['Global commands:']
- for name, command in enumerate(self.core.commands):
+ for name, command in self.core.commands.items():
if isinstance(command, Command):
acc.append(' \x19%s}%s\x19o - %s' % (
color,
@@ -56,7 +56,7 @@ class CommandCore:
acc = []
buff.append('Tab-specific 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):
acc.append(' \x19%s}%s\x19o - %s' % (
color,