Skip to content

Commit 1eba927

Browse files
committed
fix(win): abort when winobj is closing with sigwinch at the same time
1 parent b809639 commit 1eba927

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/fzf-lua/core.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ M.fzf = function(contents, opts)
384384
if not tonumber(args[1]) then return end
385385
-- NOTE: do not use local ref `fzf_win` as it my change on resume (#2255)
386386
local winobj = utils.fzf_winobj()
387-
if not winobj then return end
387+
if not winobj or winobj.closing then return end
388388
return string.format("change-preview-window(%s)", winobj:normalize_preview_layout().str)
389389
end)
390390
end

0 commit comments

Comments
 (0)