mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:47:58 +01:00
Less magic.
This commit is contained in:
@@ -395,6 +395,8 @@ var CommandMode = Class("CommandMode", {
|
|||||||
commandline.hideCompletions();
|
commandline.hideCompletions();
|
||||||
|
|
||||||
let result = this.command;
|
let result = this.command;
|
||||||
|
commandline.saveCommand();
|
||||||
|
|
||||||
modes.delay(function () {
|
modes.delay(function () {
|
||||||
if (!this.keepCommand || commandline.silent || commandline.quiet)
|
if (!this.keepCommand || commandline.silent || commandline.quiet)
|
||||||
commandline.hide();
|
commandline.hide();
|
||||||
@@ -645,9 +647,13 @@ var CommandLine = Module("commandline", {
|
|||||||
set: function set_miwVisible(value) { this.widgets.multilineInput.collapsed = !value; }
|
set: function set_miwVisible(value) { this.widgets.multilineInput.collapsed = !value; }
|
||||||
}),
|
}),
|
||||||
|
|
||||||
get command() {
|
saveCommand: function saveCommand() {
|
||||||
if (this.commandVisible && this.widgets.command)
|
if (this.commandVisible && this.widgets.command)
|
||||||
return commands.lastCommand = this.widgets.command[1];
|
commands.lastCommand = this.widgets.command[1];
|
||||||
|
},
|
||||||
|
|
||||||
|
get command() {
|
||||||
|
this.saveCommand();
|
||||||
return commands.lastCommand;
|
return commands.lastCommand;
|
||||||
},
|
},
|
||||||
set command(val) {
|
set command(val) {
|
||||||
@@ -1788,8 +1794,6 @@ var CommandLine = Module("commandline", {
|
|||||||
if (self.completions)
|
if (self.completions)
|
||||||
self.completions.tabTimer.flush();
|
self.completions.tabTimer.flush();
|
||||||
|
|
||||||
commandline.command;
|
|
||||||
|
|
||||||
self.accepted = true;
|
self.accepted = true;
|
||||||
return function () { modes.pop(); };
|
return function () { modes.pop(); };
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user