1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 04:22:26 +01:00

Hack to hide -- COMMAND LINE -- with MOW open (what the... does multiline out mode have to do with command-line mode, anyway?)

This commit is contained in:
Kris Maglione
2010-10-12 02:57:10 -04:00
parent 3d43582f0d
commit a3ce7ae169
3 changed files with 24 additions and 25 deletions

View File

@@ -43,7 +43,8 @@ const Modes = Module("modes", {
editor.unselectText();
}
});
this.addMode("COMMAND_LINE", { char: "c", input: true });
this.addMode("COMMAND_LINE", { char: "c", input: true,
display: function () modes.extended & modes.OUTPUT_MULTILINE ? null : this.disp });
this.addMode("CARET", {}, {
get pref() options.getPref("accessibility.browsewithcaret"),
set pref(val) options.setPref("accessibility.browsewithcaret", val),
@@ -112,7 +113,7 @@ const Modes = Module("modes", {
let val = this._modeMap[this._main].display();
if (val)
return "-- " + this._modeMap[this._main].display() + ext;
return "-- " + val + ext;
return macromode;
},