1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-28 09:45:48 +01:00

Fix some context splitting issues and add the group flag missing from some :style commands.

This commit is contained in:
Kris Maglione
2011-02-11 07:22:44 -05:00
parent f387275ea0
commit 791994cc18
2 changed files with 62 additions and 58 deletions

View File

@@ -227,7 +227,7 @@ var Contexts = Module("contexts", {
if (!group)
group = this.addGroup(commands.nameRegexp
.iterate(name.replace(/\.[^.]*$/, ""))
.join("-"),
.join("-").replace(/--+/g, "-"),
"Script group for " + file.path,
null, false);
@@ -608,7 +608,7 @@ var Contexts = Module("contexts", {
iter({ Active: true, Inactive: false }).forEach(function ([name, active]) {
context.split(name, null, function (context) {
context.title[0] = name + " Groups";
context.filters.push(function (item) item.active == active);
context.filters.push(function ({ item }) !!item.filter(modules.buffer.uri) == active);
});
});
};