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.
This commit is contained in:
Olivia Kinnear
2026-01-26 15:15:47 -06:00
committed by GitHub
parent 96e1acfa42
commit e9d03b92b6

View File

@@ -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')