From fa47630e0b31e125aee6f79a25711980471fbc00 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 5 Mar 2026 01:06:35 -0500 Subject: [PATCH] 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. --- lua/cp/submit.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/cp/submit.lua b/lua/cp/submit.lua index b096750..7dc9a71 100644 --- a/lua/cp/submit.lua +++ b/lua/cp/submit.lua @@ -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