mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-10 13:32:35 +08:00
Trigger netrw autocommand when opening directory
by @wilywampa https://github.com/junegunn/fzf/pull/371
This commit is contained in:
@@ -87,6 +87,9 @@ function! s:common_sink(lines) abort
|
||||
set noautochdir
|
||||
for item in a:lines
|
||||
execute cmd s:escape(item)
|
||||
if exists('#BufEnter') && isdirectory(item)
|
||||
doautocmd BufEnter
|
||||
endif
|
||||
endfor
|
||||
finally
|
||||
let &autochdir = autochdir
|
||||
|
||||
Reference in New Issue
Block a user