mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 11:18:26 +00:00
fix(picker.preview): reset before notify
This commit is contained in:
parent
40cea79697
commit
e50f2e3909
1 changed files with 1 additions and 0 deletions
|
@ -250,6 +250,7 @@ function M:notify(msg, level, opts)
|
||||||
Snacks.notify(msg, { level = level })
|
Snacks.notify(msg, { level = level })
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
self:reset()
|
||||||
level = level or "info"
|
level = level or "info"
|
||||||
local lines = vim.split(level .. ": " .. msg, "\n", { plain = true })
|
local lines = vim.split(level .. ": " .. msg, "\n", { plain = true })
|
||||||
local msg_len = #lines
|
local msg_len = #lines
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue