Use "ch_info()" to get channel id

This commit is contained in:
Filip Szymański
2016-07-12 19:05:32 +02:00
committed by GitHub
parent b5f23e9867
commit 26c6b549f2

View File

@@ -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