fix: split commands while picker is open (#2784)

This commit is contained in:
geril2207
2023-11-16 05:12:34 +03:00
committed by GitHub
parent b6edf826b4
commit 18774ec792

View File

@@ -134,7 +134,9 @@ local function default_create_layout(picker)
if vim.api.nvim_win_is_valid(self.prompt.winid) then if vim.api.nvim_win_is_valid(self.prompt.winid) then
vim.api.nvim_win_close(self.prompt.winid, true) vim.api.nvim_win_close(self.prompt.winid, true)
end end
vim.schedule(function()
utils.buf_delete(self.prompt.bufnr) utils.buf_delete(self.prompt.bufnr)
end)
end, end,
---@param self TelescopeLayout ---@param self TelescopeLayout
update = function(self) update = function(self)