1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:50:05 +08:00

fix(chat): clear current_channel

This commit is contained in:
wsdjeg 2022-05-07 23:03:33 +08:00
parent 786c61b171
commit a741ad57aa

View File

@ -475,6 +475,8 @@ function! s:enter() abort
let s:opened_channels[protocol] = [] let s:opened_channels[protocol] = []
endif endif
let s:protocol = protocol let s:protocol = protocol
" after switch protocol, the current_channel should be cleared
let s:current_channel = ''
catch catch
call chat#windows#push({ call chat#windows#push({
\ 'user' : '--->', \ 'user' : '--->',