Merge pull request #371 from wilywampa/edit_directory

Trigger netrw autocommand when opening directory
This commit is contained in:
Junegunn Choi 2015-10-09 12:36:08 +09:00
commit 7d53051ec8

View File

@ -416,6 +416,9 @@ function! s:cmd_callback(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