mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:20:05 +08:00
fix(scrollbar): use zindex only for nvim 0.5.0+
This commit is contained in:
parent
157e276226
commit
fa5d3e1d1c
@ -172,8 +172,10 @@ function! SpaceVim#plugins#scrollbar#show() abort
|
||||
\ 'row' : row,
|
||||
\ 'col' : float2nr(col),
|
||||
\ 'focusable' : 0,
|
||||
\ 'zindex' : 10,
|
||||
\ }
|
||||
if has('nvim-0.5.0')
|
||||
let opts.zindex = 10
|
||||
endif
|
||||
if s:WIN.is_float(s:scrollbar_winid)
|
||||
if bar_size !=# s:scrollbar_size
|
||||
let s:scrollbar_size = bar_size
|
||||
|
Loading…
Reference in New Issue
Block a user