From 26c6b549f287b8ae348eda083e7c77f79f4de28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Szyma=C5=84ski?= Date: Tue, 12 Jul 2016 19:05:32 +0200 Subject: [PATCH] Use "ch_info()" to get channel id --- autoload/gitgutter/async.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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