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:
@@ -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", {});
|
||||
|
||||
Reference in New Issue
Block a user