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:
@@ -870,7 +870,7 @@ lookup:
|
||||
else
|
||||
{
|
||||
// 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: 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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user