mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 07:55:45 +01:00
Make :yank :extensions work as expected.
This commit is contained in:
@@ -1215,7 +1215,9 @@ var CommandLine = Module("commandline", {
|
||||
function observe(str, highlight, dom) {
|
||||
buffer.push(dom && !isString(str) ? util.domToString(dom) : str);
|
||||
}
|
||||
this.savingOutput = true;
|
||||
dactyl.trapErrors.apply(dactyl, [fn, self].concat(Array.slice(arguments, 2)));
|
||||
this.savingOutput = false;
|
||||
return buffer.join("\n");
|
||||
}
|
||||
}, {
|
||||
|
||||
@@ -1804,6 +1804,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
 on restart)</>;
|
||||
return <></>;
|
||||
}
|
||||
let waiting = true;
|
||||
AddonManager.getAddonsByTypes(["extension"], function (extensions) {
|
||||
if (args[0])
|
||||
extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0);
|
||||
@@ -1823,7 +1824,10 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
dactyl.echoerr("Exxx: No extension matching " + filter.quote());
|
||||
else
|
||||
dactyl.echoerr("No extensions installed");
|
||||
waiting = false;
|
||||
});
|
||||
if (commandline.savingOutput)
|
||||
util.waitFor(function () !waiting);
|
||||
},
|
||||
{ argCount: "?" });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user