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

Add separate echo/command-line widgets

This commit is contained in:
Kris Maglione
2008-12-06 09:41:59 -05:00
parent 89c0620634
commit 983c2be92b
7 changed files with 63 additions and 67 deletions

View File

@@ -159,12 +159,7 @@ const modes = (function () //{{{
if (!options["showmode"])
return;
// never show mode messages if we are in command line mode
if (main == modes.COMMAND_LINE)
return;
commandline.echo(getModeMessage(), commandline.HL_MODEMSG,
commandline.DISALLOW_MULTILINE);
commandline.echo(getModeMessage(), "ModeMsg");
},
// add/remove always work on the extended mode only
@@ -178,6 +173,7 @@ const modes = (function () //{{{
// if silent == true, you also need to take care of the mode handling changes yourself
set: function (mainMode, extendedMode, silent)
{
silent = (silent || main == mainMode && extended == extendedMode);
// if a main mode is set, the extended is always cleared
if (typeof mainMode === "number")
{