From e9d03b92b67ca8c798c95efe9b6abc7dae0666b3 Mon Sep 17 00:00:00 2001 From: Olivia Kinnear Date: Mon, 26 Jan 2026 15:15:47 -0600 Subject: [PATCH] fix(health): redraw after emitting progress message #37567 Problem: `vim.cmd.redraw()` is not called after displaying a progress message, so vim will display progress for the previous health check, not the current one. Solution: Call `vim.cmd.redraw()` so that the correct progress message is displayed. --- runtime/lua/vim/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/lua/vim/health.lua b/runtime/lua/vim/health.lua index ad9edeaf16..5f736515e3 100644 --- a/runtime/lua/vim/health.lua +++ b/runtime/lua/vim/health.lua @@ -386,6 +386,7 @@ local function progress_report(len) -- extui/ui2 shows all messages at once after the healthchecks are finished. -- This 1ms wait ensures the messages are shown separately vim.wait(1) + vim.cmd.redraw() end end @@ -493,7 +494,6 @@ function M._check(mods, plugin_names) s_output[#s_output + 1] = '' s_output = vim.list_extend(header, s_output) vim.fn.append(vim.fn.line('$'), s_output) - vim.cmd.redraw() end progress_msg('success', 0, 'checks done')