mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 05:30:05 +08:00
Can not close scrollbar after tabclose
This commit is contained in:
parent
a34c156fe4
commit
0db1121180
@ -183,7 +183,9 @@ function! SpaceVim#plugins#scrollbar#clear(...) abort
|
||||
let bufnr = get(a:000, 0, 0)
|
||||
let state = s:buf_get_var(bufnr, 'scrollbar_state')
|
||||
if !empty(state) && has_key(state, 'winnr')
|
||||
noautocmd call nvim_win_close(state.winnr, 1)
|
||||
if win_id2win(state.winnr) > 0
|
||||
noautocmd call nvim_win_close(state.winnr, 1)
|
||||
endif
|
||||
noautocmd call nvim_buf_set_var(bufnr, 'scrollbar_state', {
|
||||
\ 'size' : state.size,
|
||||
\ 'bufnr' : state.bufnr,
|
||||
|
Loading…
Reference in New Issue
Block a user