Skip to content

Commit 1749fed

Browse files
phanenibhagwan
authored andcommitted
fix(preview): convert border-line to border-fused (#2567)
1 parent 5921997 commit 1749fed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lua/fzf-lua/win.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,9 @@ function FzfWin:normalize_border(border, metadata)
569569
["border-horizontal"] = { "", "", "", "", "", "", "", "" },
570570
["border-top"] = { "", "", "", "", "", "", "", "" },
571571
["border-bottom"] = { "", "", "", "", "", "", "", "" },
572+
["border-line"] = function()
573+
return require("fzf-lua.profiles.border-fused").winopts.preview.border(self, metadata)
574+
end,
572575
}
573576
if type(border) == "string" then
574577
if not valid_borders[border] then
@@ -578,6 +581,7 @@ function FzfWin:normalize_border(border, metadata)
578581
border = "rounded"
579582
else
580583
border = valid_borders[border]
584+
border = type(border) == "function" and border() or border
581585
end
582586
elseif type(border) ~= "table" then
583587
if not self._o.silent then

0 commit comments

Comments
 (0)