mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-08-31 20:06:58 +08:00
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.
This commit is contained in:
@@ -771,7 +771,8 @@ function! s:goto_entry(winid, bufnr, dir, kind, entry) abort
|
|||||||
call add(cmds, 'normal! zvzz')
|
call add(cmds, 'normal! zvzz')
|
||||||
else
|
else
|
||||||
let path = s:in_dir(a:dir, entry)
|
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
|
return
|
||||||
endif
|
endif
|
||||||
let cmds = s:edit_cmds(a:winid, path)
|
let cmds = s:edit_cmds(a:winid, path)
|
||||||
|
|||||||
Reference in New Issue
Block a user