fix: crash in tags on enter for no results and random crash in previewer
This commit is contained in:
@@ -386,6 +386,10 @@ previewers.new_buffer_previewer = function(opts)
|
||||
opts.define_preview(self, entry, status)
|
||||
|
||||
vim.schedule(function()
|
||||
if not self or not self.state or not self.state.bufnr then
|
||||
return
|
||||
end
|
||||
|
||||
if vim.api.nvim_buf_is_valid(self.state.bufnr) then
|
||||
vim.api.nvim_buf_call(self.state.bufnr, function()
|
||||
vim.cmd "do User TelescopePreviewerLoaded"
|
||||
|
||||
Reference in New Issue
Block a user