Skip to content

Commit 5e03567

Browse files
v1nnsclason
authored andcommitted
fix(from_entry): skip validation with unnamed buffer
1 parent 2ad199a commit 5e03567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/telescope/from_entry.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function from_entry.path(entry, validate, escape)
2626
end
2727

2828
-- only 0 if neither filereadable nor directory
29-
if validate then
29+
if validate and path ~= "[No Name]" then
3030
-- We need to expand for filereadable and isdirectory
3131
-- TODO(conni2461): we are not going to return the expanded path because
3232
-- this would lead to cache misses in the perviewer.

0 commit comments

Comments
 (0)