mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 18:47:58 +01:00
Dont force :echo "foo" to the MOW
This commit is contained in:
@@ -615,7 +615,7 @@ function CommandLine() //{{{
|
|||||||
|
|
||||||
if (typeof arg === "object")
|
if (typeof arg === "object")
|
||||||
arg = util.objectToString(arg, useColor);
|
arg = util.objectToString(arg, useColor);
|
||||||
else if (typeof arg != "xml")
|
else if (typeof arg == "string" && /\n/.test(arg))
|
||||||
arg = <span highlight="CmdOutput">{arg}</span>;
|
arg = <span highlight="CmdOutput">{arg}</span>;
|
||||||
|
|
||||||
return arg;
|
return arg;
|
||||||
@@ -883,7 +883,6 @@ function CommandLine() //{{{
|
|||||||
|
|
||||||
open: function open(prompt, cmd, extendedMode)
|
open: function open(prompt, cmd, extendedMode)
|
||||||
{
|
{
|
||||||
liberator.dump("commandline.open: " + (extendedMode && modes.getMode(extendedMode).name));
|
|
||||||
// save the current prompts, we need it later if the command widget
|
// save the current prompts, we need it later if the command widget
|
||||||
// receives focus without calling the this.open() method
|
// receives focus without calling the this.open() method
|
||||||
currentPrompt = prompt || "";
|
currentPrompt = prompt || "";
|
||||||
@@ -910,7 +909,6 @@ function CommandLine() //{{{
|
|||||||
close: function close()
|
close: function close()
|
||||||
{
|
{
|
||||||
let mode = currentExtendedMode;
|
let mode = currentExtendedMode;
|
||||||
liberator.dump("commandline.close: " + (mode && modes.getMode(mode).name));
|
|
||||||
currentExtendedMode = null;
|
currentExtendedMode = null;
|
||||||
liberator.triggerCallback("cancel", mode);
|
liberator.triggerCallback("cancel", mode);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user