Skip to content

Commit a909258

Browse files
ColinKennedyibhagwan
authored andcommitted
fix(preview): typing no longer errors when there is no preview buffer
1 parent c9e7b7b commit a909258

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/fzf-lua/previewer/builtin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ function Previewer.buffer_or_file:preview_buf_post(entry, min_winopts)
15531553
end
15541554
-- for attach_snacks_image_{inline,buf}
15551555
-- https://github.com/folke/snacks.nvim/pull/1615
1556-
if vim.b[self.preview_bufnr].snacks_image_attached then
1556+
if self.preview_bufnr and vim.b[self.preview_bufnr].snacks_image_attached then
15571557
utils.wo[self.win.preview_winid][0].winblend = 0
15581558
end
15591559
end

0 commit comments

Comments
 (0)