@@ -580,7 +580,7 @@ function FzfWin:set_backdrop()
580580
581581 -- Code from lazy.nvim (#1344)
582582 self .backdrop_buf = vim .api .nvim_create_buf (false , true )
583- self .backdrop_win = vim . api . nvim_open_win (self .backdrop_buf , false , {
583+ self .backdrop_win = utils . nvim_open_win0 (self .backdrop_buf , false , {
584584 relative = " editor" ,
585585 width = vim .o .columns ,
586586 height = vim .o .lines ,
@@ -590,7 +590,7 @@ function FzfWin:set_backdrop()
590590 focusable = false ,
591591 -- -2 as preview border is -1
592592 zindex = self .winopts .zindex - 2 ,
593- border = ' none' ,
593+ border = " none" ,
594594 })
595595 utils .wo (self .backdrop_win , " winhighlight" , " Normal:" .. self .hls .backdrop )
596596 utils .wo (self .backdrop_win , " winblend" , self .winopts .backdrop )
@@ -1312,7 +1312,7 @@ function FzfWin:update_preview_scrollbar()
13121312 else
13131313 empty .noautocmd = true
13141314 self ._sbuf1 = ensure_tmp_buf (self ._sbuf1 )
1315- self ._swin1 = vim . api . nvim_open_win (self ._sbuf1 , false , empty )
1315+ self ._swin1 = utils . nvim_open_win0 (self ._sbuf1 , false , empty )
13161316 local hl = self .hls .scrollfloat_e or " PmenuSbar"
13171317 vim .wo [self ._swin1 ].winhighlight =
13181318 (" Normal:%s,NormalNC:%s,NormalFloat:%s,EndOfBuffer:%s" ):format (hl , hl , hl , hl )
@@ -1323,7 +1323,7 @@ function FzfWin:update_preview_scrollbar()
13231323 else
13241324 full .noautocmd = true
13251325 self ._sbuf2 = ensure_tmp_buf (self ._sbuf2 )
1326- self ._swin2 = vim . api . nvim_open_win (self ._sbuf2 , false , full )
1326+ self ._swin2 = utils . nvim_open_win0 (self ._sbuf2 , false , full )
13271327 local hl = self .hls .scrollfloat_f or " PmenuThumb"
13281328 vim .wo [self ._swin2 ].winhighlight =
13291329 (" Normal:%s,NormalNC:%s,NormalFloat:%s,EndOfBuffer:%s" ):format (hl , hl , hl , hl )
0 commit comments