diff --git a/content/commands.js b/content/commands.js index d7b726f7..56bbc244 100644 --- a/content/commands.js +++ b/content/commands.js @@ -1307,7 +1307,8 @@ vimperator.Commands = function () //{{{ return; } - var [, lhs, rhs] = args.match(/^(\S+)\s+(.+)$/); + // ?:\s+ <- don't remember; (...)? optional = rhs + var [, lhs, rhs] = args.match(/(\S+)(?:\s+(.+))?/); var leaderRegexp = //i; if (leaderRegexp.test(lhs))