Merge pull request #31 from star-szr/25-clear-prompt

fix: ensure input prompt is cleared
remotes/origin/HEAD
pseudometa 2023-09-10 12:35:00 +02:00 committed by GitHub
commit f99fe52f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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