mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-17 13:19:48 +00:00
fixed pwd
This commit is contained in:
3
z.lua
3
z.lua
@@ -1235,6 +1235,9 @@ function z_match(patterns, method, subdir)
|
||||
end
|
||||
table.sort(M, function (a, b) return a.score > b.score end)
|
||||
local pwd = (PWD == nil or PWD == '') and os.getenv('PWD') or PWD
|
||||
if pwd == nil or pwd == '' then
|
||||
pwd = os.pwd()
|
||||
end
|
||||
if pwd ~= '' and pwd ~= nil then
|
||||
if subdir then
|
||||
local N = {}
|
||||
|
||||
Reference in New Issue
Block a user