Skip to content

Commit 4e38d75

Browse files
committed
fix(hide): clamp resize event to fzf v0.46 (#2223)
1 parent 5c40d45 commit 4e38d75

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lua/fzf-lua/profiles/hide.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ return {
8484
end
8585
return act
8686
end, opts.actions)
87+
-- resize event was only added in fzf v0.46
88+
if not FzfLua.utils.has(opts, "fzf", { 0, 46 }) then
89+
return opts
90+
end
8791
-- Hijack the resize event to reload buffer/tab list on unhide
8892
table.insert(opts._fzf_cli_args, "--bind=" .. libuv.shellescape("resize:+transform:"
8993
.. shell.stringify_data(function(_, _, _)

0 commit comments

Comments
 (0)