Use tilde expansion when running save-as command
This commit is contained in:
@@ -214,6 +214,15 @@ function common.home_encode(text)
|
||||
end
|
||||
|
||||
|
||||
function common.home_encode_list(paths)
|
||||
local t = {}
|
||||
for i = 1, #paths do
|
||||
t[i] = common.home_encode(paths[i])
|
||||
end
|
||||
return t
|
||||
end
|
||||
|
||||
|
||||
function common.home_expand(text)
|
||||
return HOME and text:gsub("^~", HOME) or text
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user