mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(dashboard): pcall chansend for dashoard terminal widgets
This commit is contained in:
parent
f6c06415a2
commit
dc65ffd4f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue