1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 21:37:57 +01:00

Less magic.

This commit is contained in:
Kris Maglione
2015-04-26 13:11:05 -07:00
parent 61df94e750
commit b2d2e29e7a

View File

@@ -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(); };
}); });