summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2016-12-14 19:09:56 +0000
committerGitHub <noreply@github.com>2016-12-14 19:09:56 +0000
commit54b55bb39c59df6f02889ac7612b721c16569040 (patch)
tree5577766eae5b8fb1940b7d88b407a5cdae168b12
parent3418faf0541cb5ab11edab6f27b367a3849af4e6 (diff)
parent1ae851878a807689e85393c349fec52347e3abd0 (diff)
downloadale-54b55bb39c59df6f02889ac7612b721c16569040.zip
Merge pull request #222 from justinmk/fixfuncref
Nvim: pass functions as funcrefs
-rw-r--r--autoload/ale/engine.vim14
1 files changed, 7 insertions, 7 deletions
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