call 'on_create' on window reuse (closes #394)

main
bhagwan 2 years ago
parent 5722fd62fd
commit 19f79c26bd

@ -708,6 +708,11 @@ function FzfWin:create()
-- create a new tmp buffer for the fzf win
self:set_tmp_buffer()
self:setup_keybinds()
-- also recall the user's 'on_create' (#394)
if self.winopts.on_create and
type(self.winopts.on_create) == 'function' then
self.winopts.on_create()
end
-- not sure why but when using a split and reusing the window
-- fzf will not use all the avialable width until 'redraw' is
-- called resulting in misaligned native and builtin previews

Loading…
Cancel
Save