Neovim: event handlers always expect three arguments (#768)

This commit is contained in:
Marco Hinz 2016-12-13 17:56:53 +01:00 committed by Junegunn Choi
parent c60bfb2b0f
commit 8a502af4c1

View File

@ -471,7 +471,7 @@ function! s:execute_term(dict, command, temps) abort
endif
endif
endfunction
function! fzf.on_exit(id, code)
function! fzf.on_exit(id, code, _event)
if s:getpos() == self.ppos " {'window': 'enew'}
for [opt, val] in items(self.winopts)
execute 'let' opt '=' val