Fix completion when deleting command
This commit is contained in:
parent
d71147898b
commit
1b46c96192
@ -206,7 +206,7 @@ class CommandRunner(QObject):
|
|||||||
A split string commandline, e.g ['open', 'www.google.com']
|
A split string commandline, e.g ['open', 'www.google.com']
|
||||||
"""
|
"""
|
||||||
cmdstr, sep, argstr = text.partition(' ')
|
cmdstr, sep, argstr = text.partition(' ')
|
||||||
if not cmdstr:
|
if not cmdstr and not fallback:
|
||||||
raise cmdexc.NoSuchCommandError("No command given")
|
raise cmdexc.NoSuchCommandError("No command given")
|
||||||
if aliases:
|
if aliases:
|
||||||
new_cmd = self._get_alias(text, alias_no_args)
|
new_cmd = self._get_alias(text, alias_no_args)
|
||||||
|
Loading…
Reference in New Issue
Block a user