fix: filereadable should check for 1 or 0 (#2030)

This commit is contained in:
xiaxi
2022-07-01 17:37:58 +08:00
committed by GitHub
parent b98b9a93c6
commit 1aa74b231c

View File

@@ -30,7 +30,7 @@ function from_entry.path(entry, validate, escape)
return return
end end
if validate and not vim.fn.filereadable(path) then if validate and vim.fn.filereadable(path) == 0 then
return return
end end