mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-09 23:05:52 +08:00
Trigger netrw autocommand when opening directory
by @wilywampa https://github.com/junegunn/fzf/pull/371
This commit is contained in:
1 parent
cb8c3dc617
commit
2977f08e8f
1 file changed
+3
@@ -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