Skip to content

Commit

Permalink
(mini.notify) Update refresh() to account for closing Neovim.
Browse files Browse the repository at this point in the history
Details:
- See #640 (comment).
  • Loading branch information
echasnovski committed Feb 6, 2024
1 parent 9adc2ee commit caf2d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/mini/notify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ end
--- update its message.
--- - Construct content from notifications and show them in a window.
MiniNotify.refresh = function()
if H.is_disabled() then return H.window_close() end
if H.is_disabled() or type(vim.v.exiting) == 'number' then return H.window_close() end

-- Prepare array of active notifications
local notif_arr = vim.deepcopy(vim.tbl_values(H.active))
Expand Down

0 comments on commit caf2d06

Please sign in to comment.