fix: clear prompt when creating file

fixes #1138
This commit is contained in:
kiyan
2022-04-06 13:37:17 +02:00
parent 924aa29092
commit 618ea25613

View File

@@ -69,6 +69,8 @@ function M.fn(node)
return
end
utils.clear_prompt()
if utils.file_exists(new_file_path) then
utils.warn "Cannot create: file already exists"
return