mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 13:37:58 +01:00
Fix some brokenness.
This commit is contained in:
@@ -183,7 +183,7 @@ const CommandLine = Module("commandline", {
|
|||||||
});
|
});
|
||||||
this.registerCallback("complete", modes.PROMPT, function (context) {
|
this.registerCallback("complete", modes.PROMPT, function (context) {
|
||||||
if (self._input.complete)
|
if (self._input.complete)
|
||||||
context.fork("input", 0, commandline, input.complete);
|
context.fork("input", 0, commandline, self._input.complete);
|
||||||
});
|
});
|
||||||
|
|
||||||
function cancelPrompt(value) {
|
function cancelPrompt(value) {
|
||||||
|
|||||||
@@ -1049,7 +1049,7 @@ const Hints = Module("hints", {
|
|||||||
promptHighlight: "Normal",
|
promptHighlight: "Normal",
|
||||||
completer: function (context) {
|
completer: function (context) {
|
||||||
context.compare = function () 0;
|
context.compare = function () 0;
|
||||||
context.completions = [[k, v.prompt] for ([k, v] in Iterator(this._hintModes))];
|
context.completions = [[k, v.prompt] for ([k, v] in Iterator(hints._hintModes))];
|
||||||
},
|
},
|
||||||
onChange: function () { modes.pop(); },
|
onChange: function () { modes.pop(); },
|
||||||
onCancel: function (arg) { arg && setTimeout(function () hints.show(arg), 0); }
|
onCancel: function (arg) { arg && setTimeout(function () hints.show(arg), 0); }
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const Option = Class("Option", {
|
|||||||
|
|
||||||
// add no{option} variant of boolean {option} to this.names
|
// add no{option} variant of boolean {option} to this.names
|
||||||
if (this.type == "boolean")
|
if (this.type == "boolean")
|
||||||
this.names = array([name, "no" + name] for (name in values(names))).flatten();
|
this.names = array([name, "no" + name] for (name in values(names))).flatten().__proto__;
|
||||||
|
|
||||||
if (this.globalValue == undefined)
|
if (this.globalValue == undefined)
|
||||||
this.globalValue = this.defaultValue;
|
this.globalValue = this.defaultValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user