mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 00:55:47 +01: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:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user