Skip to content

Commit c2bdd67

Browse files
committed
不要なコールバック定義を削除。
1 parent d1ec025 commit c2bdd67

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

autoload/vital/__vital__/System/AsyncProcess.vim

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ function! s:_vital_depends() abort
1616
return []
1717
endfunction
1818

19-
function! s:nop_cb(_) abort
20-
endfunction
21-
2219
if !s:is_nvim
23-
" for Vim
20+
" inner callbacks for Vim
2421
function! s:inner_out_cb(user_out_cb, ch, msg) abort
2522
call a:user_out_cb(a:msg)
2623
endfunction
@@ -33,7 +30,7 @@ if !s:is_nvim
3330
call a:user_err_cb(a:msg)
3431
endfunction
3532
else
36-
" for Neovim
33+
" inner callbacks for Neovim
3734
function! s:inner_out_cb(user_out_cb, job_id, data, event) abort
3835
for line in a:data
3936
if line !=# ''
@@ -58,9 +55,9 @@ endif
5855
" execute({command}, {options})
5956
" {command} = string
6057
" {options} = {
61-
" out_cb: function(stdout_msg),
62-
" err_cb: function(stderr_msg),
63-
" exit_cb: function(exit_code),
58+
" out_cb: function(stdout_msg), " call per line
59+
" err_cb: function(stderr_msg), " call per line
60+
" exit_cb: function(exit_code), " call on exit
6461
" }
6562
function! s:execute(command, options) abort
6663
if !type(a:options) is s:TYPE_DICT

0 commit comments

Comments
 (0)