1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 12:42:26 +01:00

output an error message if :source is called without an argument

This commit is contained in:
Doug Kearns
2008-09-27 13:22:05 +00:00
parent 675ae16f24
commit f22640fac2

View File

@@ -323,12 +323,12 @@ liberator.IO = function () //{{{
"Read Ex commands from a file",
function (args, special)
{
// FIXME: implement proper filename quoting
//if (/[^\\]\s/.test(args))
//{
// liberator.echoerr("E172: Only one file name allowed");
// return;
//}
// FIXME: implement proper filename quoting - "E172: Only one file name allowed"
if (!args)
{
liberator.echoerr("E471: Argument required");
return;
}
liberator.io.source(args, special);
},