Remove weird condition when cmd text ends with ' '.
For some reason we checked nargs if split is False. This caused the completion
to not get hidden with ":spawn ". Since this condition makes no sense (and
probably was converted wrong in be467d5e
) we remove it here.
This commit is contained in:
parent
d60ff5ed27
commit
54c7f29f04
@ -223,8 +223,7 @@ class CommandManager:
|
|||||||
self._cmd = cmd
|
self._cmd = cmd
|
||||||
self._args = args
|
self._args = args
|
||||||
retargs = args[:]
|
retargs = args[:]
|
||||||
if text.endswith(' ') and (cmd.split is True or
|
if text.endswith(' '):
|
||||||
len(args) < cmd.nargs[0]):
|
|
||||||
retargs.append('')
|
retargs.append('')
|
||||||
return [cmdstr] + retargs
|
return [cmdstr] + retargs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user