mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-08 11:15:52 +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:
@@ -992,7 +992,10 @@ unlet s:cpo_save
|
||||
}
|
||||
}
|
||||
if (!match || match.scheme === "resource" && match.path)
|
||||
if (/^(\.{0,2}|~)\/|^file:/.test(context.filter) || util.getFile(context.filter) || io.isJarURL(context.filter))
|
||||
if (/^(\.{0,2}|~)\/|^file:/.test(context.filter)
|
||||
|| util.OS.isWindows && /^[a-z]:/i.test(url)
|
||||
|| util.getFile(context.filter)
|
||||
|| io.isJarURL(context.filter))
|
||||
completion.file(context, full);
|
||||
});
|
||||
},
|
||||
|
||||
@@ -609,9 +609,8 @@ var Styles = Module("Styles", {
|
||||
command: "style",
|
||||
arguments: [style.sites.join(",")],
|
||||
literalArg: style.css,
|
||||
options: update({
|
||||
"-group": hive.name,
|
||||
},
|
||||
options: update(
|
||||
hive.name == "user" ? {} : { "-group": hive.name },
|
||||
style.name ? { "-name": style.name } : {})
|
||||
})))
|
||||
.flatten().array
|
||||
|
||||
Reference in New Issue
Block a user