1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 03:52:26 +01:00

Make :rehash|echomsg "foo" work as expected.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-05 08:46:35 -05:00
parent 4b8e834fa6
commit 5a00fb0c62
3 changed files with 13 additions and 2 deletions

View File

@@ -1791,7 +1791,12 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
commands.add(["reh[ash]"],
"Reload the " + config.appName + " add-on",
function (args) { util.rehash(args); },
function (args) {
if (args.trailing)
JSMLoader.rehashCmd = args.trailing; // Hack.
args.break = true;
util.rehash(args);
},
{
argCount: "0",
options: [
@@ -2117,6 +2122,10 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
dactyl.execute(cmd);
});
if (JSMLoader.rehashCmd)
dactyl.execute(JSMLoader.rehashCmd);
JSMLoader.rehashCmd = null;
dactyl.fullyInitialized = true;
dactyl.triggerObserver("enter", null);
autocommands.trigger("Enter", {});