We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f579824 commit 13513d6Copy full SHA for 13513d6
1 file changed
lua/fzf-lua/core.lua
@@ -374,7 +374,10 @@ M.fzf = function(contents, opts)
374
.. libuv.shellescape("resize:+transform:" .. shell.stringify_data(function(args)
375
-- Only set the layout if preview isn't hidden
376
if not tonumber(args[1]) then return end
377
- return string.format("change-preview-window(%s)", fzf_win:fzf_preview_layout_str())
+ -- NOTE: do not use local ref `fzf_win` as it my change on resume (#2255)
378
+ local winobj = utils.fzf_winobj()
379
+ if not winobj then return end
380
+ return string.format("change-preview-window(%s)", winobj:fzf_preview_layout_str())
381
end, opts, utils.__IS_WINDOWS and "%FZF_PREVIEW_LINES%" or "$FZF_PREVIEW_LINES")))
382
end
383
0 commit comments