From 4ee27ef7285f6b4b01c15c70c0adbb11450afbeb Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 10 Jan 2016 00:38:40 +1100 Subject: [PATCH] Fix command related JavaScript completers. --- common/modules/commands.jsm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/modules/commands.jsm b/common/modules/commands.jsm index 7cc58592..003ee03a 100644 --- a/common/modules/commands.jsm +++ b/common/modules/commands.jsm @@ -1911,11 +1911,15 @@ var Commands = Module("commands", { setCompleter([CommandHive.prototype.get, CommandHive.prototype.remove], [function () { - return Array.from(this, cmd => [c.names, c.description]); + return Array.from(this, + cmd => [cmd.names, + cmd.description]); }]); setCompleter([Commands.prototype.get], [function () { - return Array.from(this.iterator(), cmd => [c.names, c.description]); + return Array.from(this.iterator(), + cmd => [cmd.names, + cmd.description]); }]); }, mappings: function initMappings(dactyl, modules, window) {