From 2a0c384f39f3f0532095d3fcaecf5d2151a6344c Mon Sep 17 00:00:00 2001 From: Vinicius Longaray Date: Wed, 29 Jan 2025 19:36:03 -0300 Subject: [PATCH] fix(from_entry): skip validation with unnamed buffer --- 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 4a66d47eb9..f5b9c2eb8f 100644 --- a/lua/telescope/from_entry.lua +++ b/lua/telescope/from_entry.lua @@ -26,7 +26,7 @@ function from_entry.path(entry, validate, escape) end -- only 0 if neither filereadable nor directory - if validate then + if validate and path ~= "[No Name]" then -- We need to expand for filereadable and isdirectory -- TODO(conni2461): we are not going to return the expanded path because -- this would lead to cache misses in the perviewer.