mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:50:04 +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,
|
\ 'row' : row,
|
||||||
\ 'col' : float2nr(col),
|
\ 'col' : float2nr(col),
|
||||||
\ 'focusable' : 0,
|
\ 'focusable' : 0,
|
||||||
\ 'zindex' : 10,
|
|
||||||
\ }
|
\ }
|
||||||
|
if has('nvim-0.5.0')
|
||||||
|
let opts.zindex = 10
|
||||||
|
endif
|
||||||
if s:WIN.is_float(s:scrollbar_winid)
|
if s:WIN.is_float(s:scrollbar_winid)
|
||||||
if bar_size !=# s:scrollbar_size
|
if bar_size !=# s:scrollbar_size
|
||||||
let s:scrollbar_size = bar_size
|
let s:scrollbar_size = bar_size
|
||||||
|
Loading…
Reference in New Issue
Block a user