summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Niehus <jacob.niehus@gmail.com>2015-10-08 18:32:48 -0700
committerJacob Niehus <jacob.niehus@gmail.com>2015-10-08 20:28:07 -0700
commited893c5f47453f9b27b708b01416c0a49446b97e (patch)
tree30501c78996aacfce77176caf1873c0fc54e2533
parent1da065e50e2b1270bec1f62f46daf6e84e9ca991 (diff)
Trigger netrw autocommand when opening directory
-rw-r--r--plugin/fzf.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 168bc619..bd8e20ba 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -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