We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4bc05b commit 1403933Copy full SHA for 1403933
lua/nvim-tree/actions/fs/rename-file.lua
@@ -161,12 +161,14 @@ function M.fn(default_modifier)
161
return
162
end
163
164
- M.rename(node, prepend .. new_file_path .. append)
+ local full_new_path = prepend .. new_file_path .. append
165
+
166
+ M.rename(node, full_new_path)
167
if not M.config.filesystem_watchers.enable then
168
explorer:reload_explorer()
169
170
- find_file(utils.path_remove_trailing(new_file_path))
171
+ find_file(utils.path_remove_trailing(full_new_path))
172
end)
173
174
0 commit comments