From e231bbc24a55465fd6042af29b63780263930475 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 12 Dec 2016 22:30:30 -0500 Subject: [PATCH] Declare nvim's callback as a dict function neovim/neovim#5529 merged support for Vim's partial functions, which made nvim more strict about dictionary functions. This means the implicit self variable isn't available unless a function is annoted as a dict function or defined as part of a dictionary. Closes #392 --- autoload/gitgutter/async.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/gitgutter/async.vim b/autoload/gitgutter/async.vim index 0ce70b8..35fdf23 100644 --- a/autoload/gitgutter/async.vim +++ b/autoload/gitgutter/async.vim @@ -79,7 +79,7 @@ function! gitgutter#async#execute(cmd) abort endfunction -function! gitgutter#async#handle_diff_job_nvim(job_id, data, event) abort +function! gitgutter#async#handle_diff_job_nvim(job_id, data, event) dict abort call gitgutter#debug#log('job_id: '.a:job_id.', event: '.a:event.', buffer: '.self.buffer) let job_bufnr = self.buffer