Skip to content

Commit

Permalink
Reduce error verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMeaningfulEngineer committed May 21, 2022
1 parent ca6b8dd commit e0de495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/telescope/actions/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ actions.delete_buffer = function(prompt_bufnr)
local current_picker = action_state.get_current_picker(prompt_bufnr)
current_picker:delete_selection(function(selection)
local force = vim.api.nvim_buf_get_option(selection.bufnr, "buftype") == "terminal"
vim.api.nvim_buf_delete(selection.bufnr, { force = force })
pcall(vim.api.nvim_buf_delete, selection.bufnr, { force = force })
end)
end

Expand Down

0 comments on commit e0de495

Please sign in to comment.