diff options
Diffstat (limited to 'aconf/path.lua')
-rw-r--r-- | aconf/path.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/aconf/path.lua b/aconf/path.lua index e13f17c..85fc347 100644 --- a/aconf/path.lua +++ b/aconf/path.lua @@ -1,5 +1,5 @@ --[[ -Copyright (c) 2012-2014 Kaarle Ritvanen +Copyright (c) 2012-2015 Kaarle Ritvanen See LICENSE file for license details --]] @@ -33,7 +33,9 @@ function M.rawjoin(p1, p2, ...) end function M.join(parent, ...) - return M.rawjoin(parent, table.unpack(map(M.escape, {...}))) + local args = map(M.escape, {...}) + if parent > '' then table.insert(args, 1, parent) end + return M.rawjoin(table.unpack(args)) end |