fix(submit): clear command line after password prompt

Problem: the first status notification after `inputsecret` rendered on
the same line as the password prompt.

Solution: call `vim.cmd.redraw()` after `inputrestore` to flush the
command line before the callback fires notifications.
This commit is contained in:
Barrett Ruth 2026-03-05 01:06:35 -05:00
parent 972044fd0f
commit fa47630e0b

View file

@ -25,6 +25,7 @@ local function prompt_credentials(platform, callback)
vim.fn.inputsave()
local password = vim.fn.inputsecret(platform .. ' password: ')
vim.fn.inputrestore()
vim.cmd.redraw()
if not password or password == '' then
logger.log('Submit cancelled', vim.log.levels.WARN)
return