mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-27 09:35:45 +01:00
Experimentally move commands.js and options.js to modules. Fix some bugs.
--HG-- branch : groups rename : common/content/commands.js => common/modules/commands.jsm rename : common/content/options.js => common/modules/options.jsm
This commit is contained in:
@@ -42,9 +42,11 @@ var CompletionContext = Class("CompletionContext", {
|
||||
let parent = editor;
|
||||
name = parent.name + "/" + name;
|
||||
|
||||
this.autoComplete = this.options.get("autocomplete").getKey(name);
|
||||
this.sortResults = this.options.get("wildsort").getKey(name);
|
||||
this.wildcase = this.options.get("wildcase").getKey(name);
|
||||
if (this.options) {
|
||||
this.autoComplete = this.options.get("autocomplete").getKey(name);
|
||||
this.sortResults = this.options.get("wildsort").getKey(name);
|
||||
this.wildcase = this.options.get("wildcase").getKey(name);
|
||||
}
|
||||
|
||||
this.contexts = parent.contexts;
|
||||
if (name in this.contexts)
|
||||
@@ -448,7 +450,7 @@ var CompletionContext = Class("CompletionContext", {
|
||||
let self = this;
|
||||
delete this._substrings;
|
||||
|
||||
if (!this.forceAnchored)
|
||||
if (!this.forceAnchored && this.options)
|
||||
this.anchored = this.options.get("wildanchor").getKey(this.name, this.anchored);
|
||||
|
||||
// Item matchers
|
||||
|
||||
Reference in New Issue
Block a user