Skip to content

Commit 19beea2

Browse files
committed
fix(win): if origin win is closed prematurely
Fixes #2217
1 parent b0491b1 commit 19beea2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/fzf-lua/win.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ function FzfWin:new(o)
692692
end
693693

694694
function FzfWin:get_winopts(win, opts)
695-
if not win or not api.nvim_win_is_valid(win) then return end
695+
if not win or not api.nvim_win_is_valid(win) then return {} end
696696
local ret = {}
697697
for opt, _ in pairs(opts) do
698698
if utils.nvim_has_option(opt) then

0 commit comments

Comments
 (0)