fix(dashboard): pcall chansend for dashoard terminal widgets

This commit is contained in:
Folke Lemaitre 2025-09-27 09:39:05 +02:00
parent f6c06415a2
commit dc65ffd4f5
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -1002,7 +1002,7 @@ function M.sections.terminal(opts)
}
for seq, repl in pairs(termenv) do
if data:find(seq) then
vim.fn.chansend(jid, repl())
pcall(vim.fn.chansend, jid, repl())
data = data:gsub(seq, "")
end
end