From 5a9f08fb36d26113f03b4a2e1f23bdd71998f6e1 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 27 Aug 2026 00:02:54 +0900 Subject: [PATCH] Show a directory entry :Locate returns directories and its sink opens them, but the readable-file guard made the key silently do nothing for one. --- autoload/fzf/vim.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 8af87c5..d5c3e08 100755 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -771,7 +771,8 @@ function! s:goto_entry(winid, bufnr, dir, kind, entry) abort call add(cmds, 'normal! zvzz') else let path = s:in_dir(a:dir, entry) - if !filereadable(path) + " :Locate and a custom source can return a directory, which the sink opens + if !filereadable(path) && !isdirectory(path) return endif let cmds = s:edit_cmds(a:winid, path)