From 1896aa174877da2e5c6be35219a0a1abcdc4fbf1 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 14 Jan 2017 12:55:30 +0100 Subject: [PATCH] s:common_sink(): Avoid duplicate BufEnter. (#803) Later versions of Vim/Nvim handle `:edit ` inside try-catch. https://github.com/vim/vim/commit/e13b9afe1283f5ae43232b5992372a0eb570666c https://github.com/vim/vim/pull/1375 --- plugin/fzf.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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