1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 23:07:59 +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();
let result = this.command;
commandline.saveCommand();
modes.delay(function () {
if (!this.keepCommand || commandline.silent || commandline.quiet)
commandline.hide();
@@ -645,9 +647,13 @@ var CommandLine = Module("commandline", {
set: function set_miwVisible(value) { this.widgets.multilineInput.collapsed = !value; }
}),
get command() {
saveCommand: function saveCommand() {
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;
},
set command(val) {
@@ -1788,8 +1794,6 @@ var CommandLine = Module("commandline", {
if (self.completions)
self.completions.tabTimer.flush();
commandline.command;
self.accepted = true;
return function () { modes.pop(); };
});