diff --git a/common/content/commands.js b/common/content/commands.js index fb334ba3..e0d2e9c9 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -1049,18 +1049,16 @@ var Commands = Module("commands", { validName: Class.memoize(function () RegExp("^" + this.nameRegexp.source + "$")), - CommandMatch: Struct("match", "spec", "prespace", "count", "cmd", "bang", "space", "args"), - commandRegexp: Class.memoize(function () util.regexp( | !)? ) - (!?) - (\s*) + (?P + (?P [:\s]*) + (?P (?:\d+ | %)? ) + (?P (?: | !)? ) + (?P !?) + (?P \s*) ) - ( + (?P (?:. | \n)*? )? $ @@ -1229,7 +1227,6 @@ var Commands = Module("commands", { let match = commands.commandRegexp.exec(args.commandString); if (!match) return; - match = commands.CommandMatch.apply(null, match); context.advance(match.prespace.length + match.count.length); if (!(match.bang || match.space)) { diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 13fd68e0..596ec803 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -51,7 +51,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { autocommands.trigger("Leave", {}); }, - observe: { + observers: { "dactyl-cleanup": function () { let modules = dactyl.modules; diff --git a/common/content/marks.js b/common/content/marks.js index 2f2d87a0..a0762960 100644 --- a/common/content/marks.js +++ b/common/content/marks.js @@ -126,7 +126,7 @@ var Marks = Module("marks", { let items = array(util.range(0, sh.count)); let a = items.slice(0, sh.index).reverse(); - let b = items.slice(sh.index, sh.count); + let b = items.slice(sh.index); a.length = b.length = Math.max(a.length, b.length); items = array(a).zip(b).flatten().compact(); diff --git a/common/content/statusline.js b/common/content/statusline.js index 888336a7..0d623666 100644 --- a/common/content/statusline.js +++ b/common/content/statusline.js @@ -38,13 +38,13 @@ var StatusLine = Module("statusline", { let prepend = -