Trigger netrw autocommand when opening directory

by @wilywampa
https://github.com/junegunn/fzf/pull/371
This commit is contained in:
Junegunn Choi 2015-10-09 12:37:42 +09:00
parent cb8c3dc617
commit 2977f08e8f

View file

@ -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