1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 14:27:59 +01:00

Allow <Tab> completion of ;hint modes (again).

This commit is contained in:
Kris Maglione
2008-12-04 08:18:10 -05:00
parent 6c9fc50317
commit bcb9775b03
4 changed files with 38 additions and 22 deletions

View File

@@ -152,6 +152,8 @@ const modes = (function () //{{{
mainModes.push(this[name]);
},
getMode: function (name) modeMap[name],
// show the current mode string in the command line
show: function ()
{
@@ -180,12 +182,12 @@ const modes = (function () //{{{
// if a main mode is set, the extended is always cleared
if (typeof mainMode === "number")
{
if (!silent && mainMode != main)
handleModeChange(main, mainMode);
main = mainMode;
if (!extendedMode)
extended = modes.NONE;
if (!silent && mainMode != main)
handleModeChange(main, mainMode);
}
if (typeof extendedMode === "number")
extended = extendedMode;