diff options
| author | xiaxi <499941043@qq.com> | 2022-07-01 17:37:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-01 11:37:58 +0200 |
| commit | 1aa74b231c6f93152c4ac51549a0563dca9b4453 (patch) | |
| tree | 4e809dd099c37ad2654f24c6bac6b1f8a5060068 /lua | |
| parent | b98b9a93c67cb999493ccdc602e711c8a7a98d64 (diff) | |
fix: filereadable should check for 1 or 0 (#2030)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/from_entry.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/from_entry.lua b/lua/telescope/from_entry.lua index 572a244..83e5aca 100644 --- a/lua/telescope/from_entry.lua +++ b/lua/telescope/from_entry.lua @@ -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 |
