1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

fix(notify): check function exists

close https://github.com/SpaceVim/SpaceVim/issues/4362
This commit is contained in:
wsdjeg 2022-04-10 22:53:01 +08:00
parent 7c627cf732
commit da4547349e

View File

@ -242,6 +242,7 @@ function! s:self.redraw_windows() abort
\ 'focusable' : v:false,
\ })
if self.winblend > 0 && exists('&winblend')
&& exists('*nvim_win_set_option')
call nvim_win_set_option(self.winid, 'winblend', self.winblend)
call nvim_win_set_option(self.border.winid, 'winblend', self.winblend)
endif