Skip to content

Commit

Permalink
fix(swap): additionally check for updates when a swap file was found
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 14, 2023
1 parent addc0a2 commit 1165d3e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/noice/ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ function M.enable()
stack_level = stack_level - 1
end)

vim.api.nvim_create_autocmd("SwapExists", {
group = vim.api.nvim_create_augroup("noice-swap-exists", { clear = true }),
callback = function()
Util.try(Router.update)
end,
})
end

function M.redirect()
M.disable()
Router.echo_pending()
Expand Down

0 comments on commit 1165d3e

Please sign in to comment.