Skip to content

Commit 5647bc3

Browse files
authored
Merge branch 'master' into chore-undefined-field
2 parents 2fba44f + 1403933 commit 5647bc3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/nvim-tree-lua.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,8 +1447,6 @@ vim |current-directory| behaviour.
14471447

14481448
*nvim-tree.actions.change_dir.global*
14491449
Use `:cd` instead of `:lcd` when changing directories.
1450-
Consider that this might cause issues with the
1451-
|nvim-tree.sync_root_with_cwd| option.
14521450
Type: `boolean`, Default: `false`
14531451

14541452
*nvim-tree.actions.change_dir.restrict_above_cwd*

lua/nvim-tree/actions/fs/rename-file.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,14 @@ function M.fn(default_modifier)
162162
return
163163
end
164164

165-
M.rename(node, prepend .. new_file_path .. append)
165+
local full_new_path = prepend .. new_file_path .. append
166+
167+
M.rename(node, full_new_path)
166168
if not M.config.filesystem_watchers.enable then
167169
explorer:reload_explorer()
168170
end
169171

170-
find_file(utils.path_remove_trailing(new_file_path))
172+
find_file(utils.path_remove_trailing(full_new_path))
171173
end)
172174
end
173175
end

0 commit comments

Comments
 (0)