mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Vim: remove unreliable way of preventing close callback for unsuccessful job.
Until this commit the err callback closed the channel to prevent the close callback from being invoked, because the close callback invoked the out handler (which we don't want when the job was unsuccessful). This mostly worked but if closing the channel took too long, which it seemed it could when dealing with large files, the close callback could be called in the meantime. This commit removes the unreliable code. The parent commit ensured that the close callback only calls the out handler when the job succeeded, so we no longer need to try to prevent the close callback from being called.
This commit is contained in:
@@ -77,11 +77,6 @@ endfunction
|
||||
|
||||
function! s:on_stderr_vim(channel, _data) dict abort
|
||||
call self.handler.err(self.buffer)
|
||||
try
|
||||
call ch_close(a:channel) " so close_cb and its 'out' handler are not triggered
|
||||
catch /E906/
|
||||
" noop
|
||||
endtry
|
||||
endfunction
|
||||
|
||||
function! s:on_exit_vim(channel) dict abort
|
||||
|
||||
Reference in New Issue
Block a user