fix: ensure input prompt is cleared

Fixes: #25
remotes/origin/HEAD
Scott Zhu Reeves 2023-09-10 06:05:46 -04:00
parent 4c009f7b3e
commit 78a0d356ed
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ local function fileOp(op)
-- selene: allow(high_cyclomatic_complexity)
-- INFO completion = "dir" allows for completion via cmp-omni
vim.ui.input({ prompt = promptStr, default = prefill, completion = "dir" }, function(newName)
cmd("echomsg ''") -- Clear message area from ui.input prompt
cmd.redraw() -- Clear message area from ui.input prompt
-- VALIDATION OF FILENAME
if not newName then return end -- input has been cancelled