1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:57:58 +01:00

Fix unduly early loading of the commandline module.

This commit is contained in:
Kris Maglione
2011-02-03 10:30:35 -05:00
parent b2358eb152
commit 8ac70cbaed
6 changed files with 15 additions and 13 deletions

View File

@@ -589,18 +589,15 @@ var CommandLine = Module("commandline", {
get command() {
if (this.commandVisible && this.widgets.command)
return this._lastCommand = this.widgets.command[1];
return this._lastCommand;
return commands.lastCommand = this.widgets.command[1];
return commands.lastCommand;
},
set command(val) {
if (this.commandVisible && (modes.extended & modes.EX))
return this.widgets.command = val;
return this._lastCommand = val;
return commands.lastCommand = val;
},
get lastCommand() this._lastCommand || this.command,
set lastCommand(val) { this._lastCommand = val; },
clear: function clear() {
if (this.widgets.message && this.widgets.message[1] === this._lastClearable)
this.widgets.message = null;