1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 18:07:58 +01:00

Fix CompletionContext#allItems in wake of quoting fixes in revision 8ea6242902e4; other small fixes.

This commit is contained in:
Kris Maglione
2010-09-17 23:13:52 -04:00
parent 6c8a89b263
commit 3fe0b9238f
7 changed files with 15 additions and 466 deletions

View File

@@ -344,7 +344,7 @@ const Commands = Module("commands", {
let names = array.flatten(Command.parseSpecs(args[0]));
dactyl.assert(!names.some(function (name) name in this._exMap && !this._exMap[name].user, this),
"E182: Can't replace non-user command: " + args[0]);
if (!replace && args[3] && args[3].user)
if (!replace || !(args[3] && args[3].user))
dactyl.assert(!names.some(function (name) name in this._exMap, this),
"Not replacing command " + args[0]);
for (let name in values(names))