File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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*
Original file line number Diff line number Diff 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
173175end
You can’t perform that action at this time.
0 commit comments