summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-01-14 12:55:30 +0100
committerJunegunn Choi <junegunn.c@gmail.com>2017-01-14 20:55:30 +0900
commit1896aa174877da2e5c6be35219a0a1abcdc4fbf1 (patch)
treeb495ab8f8e1f1ebd546163dc9a6febb54fc24822 /plugin
parentfd137a9e875ba1fd9feed4903e102951f8098c33 (diff)
s:common_sink(): Avoid duplicate BufEnter. (#803)
Later versions of Vim/Nvim handle `:edit <dir>` inside try-catch. https://github.com/vim/vim/commit/e13b9afe1283f5ae43232b5992372a0eb570666c https://github.com/vim/vim/pull/1375
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 06af648e..046c3242 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -155,7 +155,8 @@ function! s:common_sink(action, lines) abort
else
call s:open(cmd, item)
endif
- if exists('#BufEnter') && isdirectory(item)
+ if !has('patch-8.0.0177') && !has('nvim-0.2') && exists('#BufEnter')
+ \ && isdirectory(item)
doautocmd BufEnter
endif
endfor