mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 16:34:11 +01:00
Remove a bit of now-superfluous code and fix Option#setFrom.
This commit is contained in:
@@ -318,7 +318,7 @@ const Dactyl = Module("dactyl", {
|
||||
* @param {boolean} silent Whether the command should be echoed on the
|
||||
* command line.
|
||||
*/
|
||||
execute: function (str, modifiers, silent, sourcing) {
|
||||
execute: function (str, modifiers, silent) {
|
||||
// skip comments and blank lines
|
||||
if (/^\s*("|$)/.test(str))
|
||||
return;
|
||||
@@ -332,10 +332,7 @@ const Dactyl = Module("dactyl", {
|
||||
if (!silent)
|
||||
commandline.command = str.replace(/^\s*:\s*/, "");
|
||||
|
||||
io.withSavedValues(["sourcing"], function () {
|
||||
io.sourcing = sourcing || io.sourcing;
|
||||
command.execute(args, modifiers);
|
||||
});
|
||||
command.execute(args, modifiers);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user