1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-11 19:04:13 +01:00

Fix bug in autocommands.

This commit is contained in:
Kris Maglione
2011-02-24 16:00:45 -05:00
parent 7d180d25e4
commit bcb2d3e7c9

View File

@@ -142,9 +142,9 @@ var AutoCommands = Module("autocommands", {
dactyl.echomsg('Executing ' + event + ' Auto commands for "*"', 8);
let lastPattern = null;
let { uri, doc } = args;
var { uri, doc } = args;
if (!uri)
({ uri, doc }) = buffer;
var { uri, doc } = buffer;
event = event.toLowerCase();
for (let hive in values(this.matchingHives(uri, doc))) {