Mercurial > vim-gutentags
comparison autoload/gutentags.vim @ 203:6e96ddda0fd3
Fix some stupid typo for Vim8 code path.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 31 Mar 2018 18:59:47 -0700 |
parents | b50b6d0f82dd |
children | 485a347152fe |
comparison
equal
deleted
inserted
replaced
202:b50b6d0f82dd | 203:6e96ddda0fd3 |
---|---|
546 echom "gutentags: Now running gutentags for real." | 546 echom "gutentags: Now running gutentags for real." |
547 endif | 547 endif |
548 echom "" | 548 echom "" |
549 endfunction | 549 endfunction |
550 | 550 |
551 function! gutentags#default_io_cb(data) abort | 551 function! gutentags#default_io_cb(chan, msg) abort |
552 call gutentags#trace(a:data) | 552 call gutentags#trace(a:msg) |
553 endfunction | 553 endfunction |
554 | 554 |
555 if has('nvim') | 555 if has('nvim') |
556 " Neovim job API. | 556 " Neovim job API. |
557 function! s:nvim_job_exit_wrapper(real_cb, job, exit_code, event_type) abort | 557 function! s:nvim_job_exit_wrapper(real_cb, job, exit_code, event_type) abort |
582 endfunction | 582 endfunction |
583 else | 583 else |
584 " Vim8 job API. | 584 " Vim8 job API. |
585 function! gutentags#build_default_job_options(module) abort | 585 function! gutentags#build_default_job_options(module) abort |
586 let l:job_opts = { | 586 let l:job_opts = { |
587 \'exit_cb': 'gutentags#'.a:module.'#on_job_exit' | 587 \'exit_cb': 'gutentags#'.a:module.'#on_job_exit', |
588 \'out_cb': 'gutentags#default_io_cb', | 588 \'out_cb': 'gutentags#default_io_cb', |
589 \'err_cb': 'gutentags#default_io_cb' | 589 \'err_cb': 'gutentags#default_io_cb' |
590 \} | 590 \} |
591 return l:job_opts | 591 return l:job_opts |
592 endfunction | 592 endfunction |