mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:57:59 +01:00
fix :colorscheme completion
This commit is contained in:
@@ -1217,12 +1217,12 @@ function Completion() //{{{
|
|||||||
|
|
||||||
colorScheme: function colorScheme(context)
|
colorScheme: function colorScheme(context)
|
||||||
{
|
{
|
||||||
options.get("runtimepath").values.forEach(function (path) {
|
io.getRuntimeDirectories("colors").forEach(function (dir) {
|
||||||
context.fork(path, 0, null, function (context) {
|
context.fork(dir.path, 0, null, function (context) {
|
||||||
context.filter = path + "/colors/" + context.filter;
|
context.filter = dir.path + io.pathSeparator + context.filter;
|
||||||
completion.file(context, true);
|
completion.file(context, true);
|
||||||
context.title = [path + "/colors/"];
|
context.title = [dir.path]; // TODO: why not "Colorscheme"?
|
||||||
context.quote = function (text) text.replace(/\.vimp$/, "");
|
context.quote = ["", function (text) text.replace(/\.vimp$/, ""), ""];
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -413,6 +413,8 @@ function IO() //{{{
|
|||||||
|
|
||||||
sourcing: null,
|
sourcing: null,
|
||||||
|
|
||||||
|
pathSeparator: WINDOWS ? "\\" : "/",
|
||||||
|
|
||||||
expandPath: function (path)
|
expandPath: function (path)
|
||||||
{
|
{
|
||||||
// TODO: proper pathname separator translation like Vim - this should be done elsewhere
|
// TODO: proper pathname separator translation like Vim - this should be done elsewhere
|
||||||
|
|||||||
Reference in New Issue
Block a user