Skip to content
Snippets Groups Projects
Commit 7d53051e authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Merge pull request #371 from wilywampa/edit_directory

Trigger netrw autocommand when opening directory
parents a4eb3323 ed893c5f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment