@@ -185,6 +185,7 @@ function FzfWin:generate_layout(winopts)
185185 style = " minimal" ,
186186 relative = self .winopts .relative or " editor" ,
187187 zindex = self .winopts .zindex ,
188+ hide = self .winopts .hide ,
188189 }, { type = " nvim" , name = " fzf" , nwin = 1 })
189190 }
190191 return
@@ -205,6 +206,7 @@ function FzfWin:generate_layout(winopts)
205206 width = api .nvim_win_get_width (self .fzf_winid ) - signcol_width ,
206207 signcol_width = signcol_width ,
207208 split = self .winopts .split ,
209+ hide = self .winopts .hide ,
208210 }
209211 end
210212
@@ -282,12 +284,14 @@ function FzfWin:generate_layout(winopts)
282284 border = self ._o .winopts .border ,
283285 relative = self .winopts .relative or " editor" ,
284286 zindex = self .winopts .zindex ,
287+ hide = self .winopts .hide ,
285288 }), { type = " nvim" , name = " fzf" , nwin = nwin , layout = preview_pos }),
286289 preview = self :normalize_border (vim .tbl_extend (" force" , pwopts , {
287290 style = " minimal" ,
288291 zindex = self .winopts .zindex ,
289292 border = self ._o .winopts .preview .border ,
290293 focusable = true ,
294+ hide = self .winopts .hide ,
291295 }), { type = " nvim" , name = " prev" , nwin = nwin , layout = preview_pos })
292296 }
293297end
@@ -591,6 +595,7 @@ function FzfWin:set_backdrop()
591595 -- -2 as preview border is -1
592596 zindex = self .winopts .zindex - 2 ,
593597 border = " none" ,
598+ hide = self .winopts .hide ,
594599 })
595600 vim .wo [self .backdrop_win ].winhighlight = " Normal:" .. self .hls .backdrop
596601 vim .wo [self .backdrop_win ].winblend = self .winopts .backdrop
@@ -1290,6 +1295,7 @@ function FzfWin:update_preview_scrollbar()
12901295 row = 0 ,
12911296 col = o .wininfo .width + scrolloff ,
12921297 border = " none" ,
1298+ hide = self .winopts .hide ,
12931299 }
12941300 local full = vim .tbl_extend (" keep" , {
12951301 zindex = empty .zindex + 1 ,
0 commit comments