Use tilde expansion when running save-as command
This commit is contained in:
1 parent
1decf67b64
commit
6369a7f760
3 files changed
+16
-13
No files matched your search
@@ -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