Merge pull request #31 from star-szr/25-clear-prompt
fix: ensure input prompt is clearedremotes/origin/HEAD
commit
f99fe52f65
|
|
@ -62,7 +62,7 @@ local function fileOp(op)
|
||||||
-- selene: allow(high_cyclomatic_complexity)
|
-- selene: allow(high_cyclomatic_complexity)
|
||||||
-- INFO completion = "dir" allows for completion via cmp-omni
|
-- INFO completion = "dir" allows for completion via cmp-omni
|
||||||
vim.ui.input({ prompt = promptStr, default = prefill, completion = "dir" }, function(newName)
|
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
|
-- VALIDATION OF FILENAME
|
||||||
if not newName then return end -- input has been cancelled
|
if not newName then return end -- input has been cancelled
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue