mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 08:02:29 +02:00
Enabled autocommmands(trigger) to call function.
This commit is contained in:
1 parent
9e283a0c06
commit
6a3be0dcc6
1 file changed
+4
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user