Skip to content

Commit 3e644b8

Browse files
committed
fix(global): zero event previewer mismatch
1 parent e40e233 commit 3e644b8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lua/fzf-lua/class.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function Object:is(T)
5252
end
5353

5454
function Object:__tostring()
55-
return "Object"
55+
return string.format("Object %p", self)
5656
end
5757

5858
function Object:__call(...)

lua/fzf-lua/previewer/builtin.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,8 @@ function Previewer.base:zero(_)
474474
local act = string.format("execute-silent(mkdir %s && %s)",
475475
libuv.shellescape(self._zero_lock),
476476
shell.stringify_data(function(_, _, _)
477+
-- upvalue incase previewer was detached/re-attached (global picker)
478+
self = self.win._previewer or self
477479
vim.defer_fn(function()
478480
if self.win:validate_preview() then
479481
self:clear_preview_buf(true)

0 commit comments

Comments
 (0)