mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-21 19:51:22 +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
|
set noautochdir
|
||||||
for item in a:lines
|
for item in a:lines
|
||||||
execute cmd s:escape(item)
|
execute cmd s:escape(item)
|
||||||
|
if exists('#BufEnter') && isdirectory(item)
|
||||||
|
doautocmd BufEnter
|
||||||
|
endif
|
||||||
endfor
|
endfor
|
||||||
finally
|
finally
|
||||||
let &autochdir = autochdir
|
let &autochdir = autochdir
|
||||||
|
|||||||
Reference in New Issue
Block a user