mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 18:44:12 +01:00
add filename completion to :mkvimperatorrc
This commit is contained in:
@@ -256,7 +256,18 @@ liberator.IO = function () //{{{
|
||||
line += "\nsource! " + filename + ".local\n";
|
||||
line += "\n\" vim: set ft=vimperator:";
|
||||
|
||||
liberator.io.writeFile(file, line);
|
||||
try
|
||||
{
|
||||
liberator.io.writeFile(file, line);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
liberator.echoerr("E190: Cannot open \"" + filename + "\" for writing");
|
||||
liberator.log("Could not write to " + file.path + ": " + e.message); // XXX
|
||||
}
|
||||
},
|
||||
{
|
||||
completer: function (filter) liberator.completion.file(filter, true)
|
||||
});
|
||||
|
||||
liberator.commands.add(["ru[ntime]"],
|
||||
|
||||
Reference in New Issue
Block a user