From 13bd873d36943d5b5792c81c3b940cf55183cef6 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Thu, 29 Oct 2026 12:19:45 +1100 Subject: [PATCH] fix(rename): cancel operation on empty name entered --- lua/nvim-tree/actions/fs/rename-file.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/actions/fs/rename-file.lua b/lua/nvim-tree/actions/fs/rename-file.lua index 3bf50fd149d..6c04e964726 100644 --- a/lua/nvim-tree/actions/fs/rename-file.lua +++ b/lua/nvim-tree/actions/fs/rename-file.lua @@ -157,7 +157,7 @@ local function prompt_to_rename(node, modifier) vim.ui.input(input_opts, function(new_file_path) utils.clear_prompt() - if not new_file_path then + if not new_file_path or #new_file_path == 0 then return end