diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index 0a20f4d1..e00fead3 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -1017,7 +1017,16 @@ function Commands() //{{{ } )); addDefaultCommand(new Command(["so[urce]"], - function(args) { vimperator.source(args); }, + function(args) + { + if (/[^\\]\s/.test(args)) + { + vimperator.echoerr("E172: Only one file name allowed"); + return; + } + + vimperator.source(args); + }, { usage: ["so[urce][!] {file}"], short_help: "Read Ex commands from {file}",