From 1ae851878a807689e85393c349fec52347e3abd0 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 14 Dec 2016 17:40:45 +0100 Subject: Nvim: pass functions as funcrefs neovim/neovim#5529 merged support for Vim's partial functions, which made nvim more strict about dictionary functions and callbacks, to match Vim behavior. --- autoload/ale/engine.vim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'autoload') diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 960b993e..005bca43 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -205,19 +205,19 @@ function! s:RunJob(command, generic_job_options) abort if l:output_stream ==# 'stderr' " Read from stderr instead of stdout. let l:job = jobstart(l:command, { - \ 'on_stderr': 's:GatherOutputNeoVim', - \ 'on_exit': 's:HandleExitNeoVim', + \ 'on_stderr': function('s:GatherOutputNeoVim'), + \ 'on_exit': function('s:HandleExitNeoVim'), \}) elseif l:output_stream ==# 'both' let l:job = jobstart(l:command, { - \ 'on_stdout': 's:GatherOutputNeoVim', - \ 'on_stderr': 's:GatherOutputNeoVim', - \ 'on_exit': 's:HandleExitNeoVim', + \ 'on_stdout': function('s:GatherOutputNeoVim'), + \ 'on_stderr': function('s:GatherOutputNeoVim'), + \ 'on_exit': function('s:HandleExitNeoVim'), \}) else let l:job = jobstart(l:command, { - \ 'on_stdout': 's:GatherOutputNeoVim', - \ 'on_exit': 's:HandleExitNeoVim', + \ 'on_stdout': function('s:GatherOutputNeoVim'), + \ 'on_exit': function('s:HandleExitNeoVim'), \}) endif else -- cgit v1.2.3