1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 20:02:25 +01:00

replace some echo() calls with echomsg()

This commit is contained in:
Doug Kearns
2008-12-11 16:59:51 +11:00
parent 8ad705334b
commit f27c461c7f
10 changed files with 18 additions and 15 deletions

View File

@@ -128,7 +128,10 @@ function AutoCommands() //{{{
{
args = args.string;
if (/^\s*$/.test(args))
return liberator.echo("No matching autocommands");
{
liberator.echomsg("No matching autocommands");
return;
}
let [, event, url] = args.match(/^(\S+)(?:\s+(\S+))?$/);
url = url || buffer.URL;
@@ -148,7 +151,7 @@ function AutoCommands() //{{{
// TODO: perhaps trigger could return the number of autocmds triggered
// TODO: Perhaps this should take -args to pass to the command?
if (!autocommands.get(event).some(function (c) c.pattern.test(url)))
liberator.echo("No matching autocommands");
liberator.echomsg("No matching autocommands");
else
autocommands.trigger(event, { url: url });
}