Skip to content

Commit

Permalink
fix(notify): nvim-notify replace can be an id or a record
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 10, 2023
1 parent 13c3b39 commit a9cc87b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/noice/view/backend/notify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ function NotifyView:_notify(msg)
if type(msg.opts.replace) == "table" then
local m = Manager.get_by_id(msg.opts.replace.id)
opts.replace = m and m.opts.notify_id or nil
elseif type(msg.opts.replace) == "number" then
local m = Manager.get_by_id(msg.opts.replace)
opts.replace = m and m.opts.notify_id or nil
end
end

Expand Down

0 comments on commit a9cc87b

Please sign in to comment.