mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 11:07:59 +01:00
Don't echo commands executed from sourced files.
This commit is contained in:
@@ -870,7 +870,7 @@ lookup:
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// execute a normal liberator command
|
// execute a normal liberator command
|
||||||
liberator.execute(line);
|
liberator.execute(line, null, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -856,7 +856,7 @@ const liberator = (function () //{{{
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Execute an Ex command like str=":zoom 300"
|
// Execute an Ex command like str=":zoom 300"
|
||||||
execute: function (str, modifiers)
|
execute: function (str, modifiers, silent)
|
||||||
{
|
{
|
||||||
// skip comments and blank lines
|
// skip comments and blank lines
|
||||||
if (/^\s*("|$)/.test(str))
|
if (/^\s*("|$)/.test(str))
|
||||||
@@ -888,6 +888,7 @@ const liberator = (function () //{{{
|
|||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
return liberator.echoerr(err);
|
return liberator.echoerr(err);
|
||||||
|
if (!silent)
|
||||||
commandline.command = str.replace(/^\s*:\s*/, "");
|
commandline.command = str.replace(/^\s*:\s*/, "");
|
||||||
command.execute(args, special, count, modifiers);
|
command.execute(args, special, count, modifiers);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user