Return [''] when splitting empty cmdline
This commit is contained in:
parent
2eb26c96c4
commit
9bee827d52
@ -100,7 +100,9 @@ class Command(MinimalLineEdit):
|
||||
"""Property to get the text split up in parts."""
|
||||
text = self.text()[len(self.prefix):]
|
||||
if not text:
|
||||
return []
|
||||
# When only ":" is entered, we already have one imaginary part,
|
||||
# which just is empty at the moment.
|
||||
return ['']
|
||||
logger.debug("Splitting '{}'".format(text))
|
||||
manager = CommandManager()
|
||||
parts = manager.parse(text, fallback=True, alias_no_args=False)
|
||||
|
Loading…
Reference in New Issue
Block a user