1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-06-10 07:05:21 +02:00

Fix missing ancestor modes in :listkeys, recognize paths like c:/ on Windows®, and elide redundant -group=user in :style serialization.

This commit is contained in:
Kris Maglione
2011-04-24 11:07:10 -04:00
parent 2b30df839f
commit 4166f78b73
4 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -1296,7 +1296,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
return urls.map(function (url) {
url = url.trim();
if (/^(\.{0,2}|~)(\/|$)/.test(url)) {
if (/^(\.{0,2}|~)(\/|$)/.test(url) || util.OS.isWindows && /^[a-z]:/i.test(url)) {
try {
// Try to find a matching file.
let file = io.File(url);
+1 -1
View File
@@ -689,7 +689,7 @@ var Mappings = Module("mappings", {
iterate: function (args, mainOnly) {
let modes = [this.getMode(args)];
if (!mainOnly)
modes = modes.concat(modes[0].bases);
modes = modes.concat(modes[0].allBases);
let seen = {};
// Bloody hell. --Kris