From f22640fac24bcf2c6ac67560faf37835b2ee6003 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 27 Sep 2008 13:22:05 +0000 Subject: [PATCH] output an error message if :source is called without an argument --- content/io.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/io.js b/content/io.js index 81348cc9..3e03a8d9 100644 --- a/content/io.js +++ b/content/io.js @@ -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); },