mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +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 })
|
||||
return
|
||||
end
|
||||
self:reset()
|
||||
level = level or "info"
|
||||
local lines = vim.split(level .. ": " .. msg, "\n", { plain = true })
|
||||
local msg_len = #lines
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue