Skip to content

Commit eb93316

Browse files
committed
Fixed check to add space
1 parent 8f67863 commit eb93316

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ def parseline(self, line):
14231423
if line.startswith(shortcut):
14241424
# If the next character after the shortcut isn't a space, then insert one
14251425
shortcut_len = len(shortcut)
1426-
if len(line) == shortcut_len or line[shortcut_len] != ' ':
1426+
if len(line) > shortcut_len and line[shortcut_len] != ' ':
14271427
expansion += ' '
14281428

14291429
# Expand the shortcut

0 commit comments

Comments
 (0)