From 54c7f29f04920b52ca41d1a65382cc4c5d952e36 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 28 Jul 2014 02:27:12 +0200 Subject: [PATCH] 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. --- qutebrowser/commands/managers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qutebrowser/commands/managers.py b/qutebrowser/commands/managers.py index e7944491d..646947bf0 100644 --- a/qutebrowser/commands/managers.py +++ b/qutebrowser/commands/managers.py @@ -223,8 +223,7 @@ class CommandManager: self._cmd = cmd self._args = args retargs = args[:] - if text.endswith(' ') and (cmd.split is True or - len(args) < cmd.nargs[0]): + if text.endswith(' '): retargs.append('') return [cmdstr] + retargs