fix: filereadable should check for 1 or 0 (#2030)
This commit is contained in:
@@ -30,7 +30,7 @@ function from_entry.path(entry, validate, escape)
|
||||
return
|
||||
end
|
||||
|
||||
if validate and not vim.fn.filereadable(path) then
|
||||
if validate and vim.fn.filereadable(path) == 0 then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user