From 35dffad8697fc2abb335366baafb87c7310d5621 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 20 Jan 2014 08:36:36 +0100 Subject: [PATCH] Fix parsing of single args --- qutebrowser/commands/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/commands/utils.py b/qutebrowser/commands/utils.py index 7050dbfd8..b24149fdc 100644 --- a/qutebrowser/commands/utils.py +++ b/qutebrowser/commands/utils.py @@ -31,7 +31,9 @@ class CommandParser(QObject): self.error.emit("{}: no such command".format(cmd)) return - if obj.split_args: + if len(parts) == 1: + args = [] + elif obj.split_args: args = shlex.split(parts[1]) else: args = [parts[1]]