mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:20:05 +08:00
fix(scrollbar): close scrollbar after opening vimchat
This commit is contained in:
parent
4112e478aa
commit
d67259a0f2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user