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:
parent
972044fd0f
commit
fa47630e0b
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue