1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 17:12:28 +01:00

Improve :mkvimperatorrc error messages.

This commit is contained in:
Doug Kearns
2009-05-20 22:05:35 +10:00
parent 4cbe2ed222
commit d248f92500

View File

@@ -279,7 +279,12 @@ function IO() //{{{
"Write current key mappings and changed options to the config file",
function (args)
{
// TODO: "E172: Only one file name allowed"
if (args.length > 1)
{
liberator.echoerr("E172: Only one file name allowed");
return;
}
let filename = args[0] || io.getRCFile(null, true).path;
let file = io.getFile(filename);
@@ -317,7 +322,7 @@ function IO() //{{{
}
},
{
argCount: "?",
argCount: "*", // FIXME: should be "?" but kludged for proper error message
bang: true,
completer: function (context) completion.file(context, true)
});