mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:32:25 +01:00
output an error message if :source is called without an argument
This commit is contained in:
@@ -323,12 +323,12 @@ liberator.IO = function () //{{{
|
|||||||
"Read Ex commands from a file",
|
"Read Ex commands from a file",
|
||||||
function (args, special)
|
function (args, special)
|
||||||
{
|
{
|
||||||
// FIXME: implement proper filename quoting
|
// FIXME: implement proper filename quoting - "E172: Only one file name allowed"
|
||||||
//if (/[^\\]\s/.test(args))
|
if (!args)
|
||||||
//{
|
{
|
||||||
// liberator.echoerr("E172: Only one file name allowed");
|
liberator.echoerr("E471: Argument required");
|
||||||
// return;
|
return;
|
||||||
//}
|
}
|
||||||
|
|
||||||
liberator.io.source(args, special);
|
liberator.io.source(args, special);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user