1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 08:58:00 +01:00

Don't echo commands executed from sourced files.

This commit is contained in:
Kris Maglione
2008-12-23 17:25:08 -05:00
parent 89698e3e05
commit d2fea07fbd
2 changed files with 4 additions and 3 deletions

View File

@@ -870,7 +870,7 @@ lookup:
else
{
// execute a normal liberator command
liberator.execute(line);
liberator.execute(line, null, true);
}
}
}

View File

@@ -856,7 +856,7 @@ const liberator = (function () //{{{
},
// Execute an Ex command like str=":zoom 300"
execute: function (str, modifiers)
execute: function (str, modifiers, silent)
{
// skip comments and blank lines
if (/^\s*("|$)/.test(str))
@@ -888,6 +888,7 @@ const liberator = (function () //{{{
if (err)
return liberator.echoerr(err);
if (!silent)
commandline.command = str.replace(/^\s*:\s*/, "");
command.execute(args, special, count, modifiers);
},