Skip to content

Commit 618ea25

Browse files
committed
fix: clear prompt when creating file
fixes #1138
1 parent 924aa29 commit 618ea25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/nvim-tree/actions/create-file.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ function M.fn(node)
6969
return
7070
end
7171

72+
utils.clear_prompt()
73+
7274
if utils.file_exists(new_file_path) then
7375
utils.warn "Cannot create: file already exists"
7476
return

0 commit comments

Comments
 (0)