diff --git a/common/content/commandline.js b/common/content/commandline.js index 27e7f3c0..32999fd6 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -324,7 +324,7 @@ var CommandMode = Class("CommandMode", { if (this.command || stack.pop && commandline.command) { this.onChange(commandline.command); if (this.completions) - this.completions.autocompleteTimer.flush(true); + this.completions.complete(true, false); } }, diff --git a/common/modules/styles.jsm b/common/modules/styles.jsm index bd0f7d03..644b5a5a 100644 --- a/common/modules/styles.jsm +++ b/common/modules/styles.jsm @@ -311,8 +311,8 @@ var Styles = Module("Styles", { matchFilter: function (filter) { if (filter === "*") var test = function test(uri) true; - else if (filter[0] == "^") { - let re = RegExp(filter[0]); + else if (filter[0] === "^") { + let re = RegExp(filter); test = function test(uri) re.test(uri.spec); } else if (/[*]$/.test(filter)) {