mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:57:59 +01:00
Clear message before entering command line mode. Closes issue #361.
This commit is contained in:
@@ -308,6 +308,8 @@ var CommandMode = Class("CommandMode", {
|
||||
|
||||
dactyl.assert(isinstance(this.mode, modes.COMMAND_LINE),
|
||||
"Not opening command line in non-command-line mode.");
|
||||
|
||||
commandline.clearMessage();
|
||||
modes.push(this.mode, null, this.closure);
|
||||
|
||||
this.widgets.active.commandline.collapsed = false;
|
||||
@@ -603,8 +605,7 @@ var CommandLine = Module("commandline", {
|
||||
},
|
||||
|
||||
clear: function clear() {
|
||||
if (this.widgets.message && this.widgets.message[1] === this._lastClearable)
|
||||
this.widgets.message = null;
|
||||
this.clearMessage();
|
||||
|
||||
if (!this.commandSession) {
|
||||
this.widgets.command = null;
|
||||
@@ -618,6 +619,11 @@ var CommandLine = Module("commandline", {
|
||||
mow.visible = false;
|
||||
},
|
||||
|
||||
clearMessage: function clearMessage() {
|
||||
if (this.widgets.message && this.widgets.message[1] === this._lastClearable)
|
||||
this.widgets.message = null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Displays the multi-line output of a command, preceded by the last
|
||||
* executed ex command string.
|
||||
|
||||
Reference in New Issue
Block a user