mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 20:07:59 +01:00
expand environment variables in the filename argument to :source
This commit is contained in:
@@ -1036,11 +1036,12 @@ function Commands() //{{{
|
||||
addDefaultCommand(new Command(["so[urce]"],
|
||||
function(args)
|
||||
{
|
||||
if (/[^\\]\s/.test(args))
|
||||
{
|
||||
vimperator.echoerr("E172: Only one file name allowed");
|
||||
return;
|
||||
}
|
||||
// FIXME: implement proper filename quoting
|
||||
//if (/[^\\]\s/.test(args))
|
||||
//{
|
||||
// vimperator.echoerr("E172: Only one file name allowed");
|
||||
// return;
|
||||
//}
|
||||
|
||||
vimperator.source(args);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user