Skip to content
Snippets Groups Projects
Commit ed893c5f authored by Jacob Niehus's avatar Jacob Niehus
Browse files

Trigger netrw autocommand when opening directory

parent 1da065e5
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