1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

fix(scrollbar): close scrollbar after opening vimchat

This commit is contained in:
wsdjeg 2022-05-03 10:52:31 +08:00
parent 4112e478aa
commit d67259a0f2

View File

@ -62,6 +62,12 @@ function! chat#windows#open() abort
else
noautocmd exec bufwinnr(s:name) . 'wincmd w'
endif
" scrollbar will not be closed if use noautocmd to open split.
try
call SpaceVim#plugins#scrollbar#clear()
catch
endtry
call s:windowsinit()
call s:init_hi()
setl modifiable