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

fix(scrollbar): use zindex only for nvim 0.5.0+

This commit is contained in:
Eric Wong 2024-06-02 13:51:58 +08:00
parent 157e276226
commit fa5d3e1d1c

View File

@ -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