1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 01:05:46 +01:00

Enabled autocommmands(trigger) to call function.

This commit is contained in:
anekos
2008-12-08 23:30:25 +09:00
parent 9e283a0c06
commit 6a3be0dcc6

View File

@@ -251,7 +251,10 @@ function AutoCommands() //{{{
lastPattern = autoCmd.pattern;
liberator.echomsg("autocommand " + autoCmd.command, 9);
liberator.execute(commands.replaceTokens(autoCmd.command, args));
if (autoCmd.command instanceof Function)
autoCmd.command.call(autoCmd, args);
else
liberator.execute(commands.replaceTokens(autoCmd.command, args));
}
}
}