diff --git a/autoload/gitgutter/async.vim b/autoload/gitgutter/async.vim index 78e725f..91a4511 100644 --- a/autoload/gitgutter/async.vim +++ b/autoload/gitgutter/async.vim @@ -129,8 +129,7 @@ endfunction function! s:channel_id(channel) abort - " This seems to be the only way to get info about the channel once closed. - return matchstr(a:channel, '\d\+') + return ch_info(a:channel)['id'] endfunction