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)
|
||||
{
|
||||
options.get("runtimepath").values.forEach(function (path) {
|
||||
context.fork(path, 0, null, function (context) {
|
||||
context.filter = path + "/colors/" + context.filter;
|
||||
io.getRuntimeDirectories("colors").forEach(function (dir) {
|
||||
context.fork(dir.path, 0, null, function (context) {
|
||||
context.filter = dir.path + io.pathSeparator + context.filter;
|
||||
completion.file(context, true);
|
||||
context.title = [path + "/colors/"];
|
||||
context.quote = function (text) text.replace(/\.vimp$/, "");
|
||||
context.title = [dir.path]; // TODO: why not "Colorscheme"?
|
||||
context.quote = ["", function (text) text.replace(/\.vimp$/, ""), ""];
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
@@ -413,6 +413,8 @@ function IO() //{{{
|
||||
|
||||
sourcing: null,
|
||||
|
||||
pathSeparator: WINDOWS ? "\\" : "/",
|
||||
|
||||
expandPath: function (path)
|
||||
{
|
||||
// TODO: proper pathname separator translation like Vim - this should be done elsewhere
|
||||
|
||||
Reference in New Issue
Block a user