Skip to content

Commit 0726a99

Browse files
author
skywind3000
committed
update window.vim
1 parent 75ece14 commit 0726a99

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

autoload/quickui/window.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function! s:window.__prepare_opts(textlist, opts)
5151
let opts.wrap = get(a:opts, 'wrap', 0)
5252
let opts.color = get(a:opts, 'color', 'QuickBG')
5353
let opts.border = get(a:opts, 'border', 0)
54+
let opts.opacity = get(a:opts, 'opacity', 100)
5455
let self.opts = opts
5556
let self.bid = quickui#core#buffer_alloc()
5657
let self.dirty = 1
@@ -171,6 +172,9 @@ function! s:window.__vim_create()
171172
if get(self.opts, 'button', 0) != 0
172173
let opts.close = 'button'
173174
endif
175+
if has('patch-9.2.428')
176+
let opts.opacity = self.opts.opacity
177+
endif
174178
let self.winid = popup_create(self.bid, opts)
175179
let winid = self.winid
176180
let local = quickui#core#popup_local(winid)

0 commit comments

Comments
 (0)