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)