We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f67863 commit eb93316Copy full SHA for eb93316
1 file changed
cmd2.py
@@ -1423,7 +1423,7 @@ def parseline(self, line):
1423
if line.startswith(shortcut):
1424
# If the next character after the shortcut isn't a space, then insert one
1425
shortcut_len = len(shortcut)
1426
- if len(line) == shortcut_len or line[shortcut_len] != ' ':
+ if len(line) > shortcut_len and line[shortcut_len] != ' ':
1427
expansion += ' '
1428
1429
# Expand the shortcut
0 commit comments