From 1aa74b231c6f93152c4ac51549a0563dca9b4453 Mon Sep 17 00:00:00 2001 From: xiaxi <499941043@qq.com> Date: Fri, 1 Jul 2022 17:37:58 +0800 Subject: [PATCH] fix: filereadable should check for 1 or 0 (#2030) --- lua/telescope/from_entry.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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