summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core.py b/src/core.py
index 1a1ff433..4e17d747 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1315,12 +1315,14 @@ class Core(object):
/help <command_name>
"""
args = arg.split()
+ acc = []
if not args:
msg = _('Available commands are: ')
for command in self.commands:
- msg += "%s " % command
+ acc.append(command)
for command in self.current_tab().commands:
- msg += "%s " % command
+ acc.append(command)
+ msg += ' '.join(sorted(acc))
msg += _("\nType /help <command_name> to know what each command does")
if args:
if args[0] in self.commands: