Merge branch 'master' into chore-undefined-field

This commit is contained in:
Alexander Courtis
2024-10-27 17:29:31 +11:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -1447,8 +1447,6 @@ vim |current-directory| behaviour.
*nvim-tree.actions.change_dir.global*
Use `:cd` instead of `:lcd` when changing directories.
Consider that this might cause issues with the
|nvim-tree.sync_root_with_cwd| option.
Type: `boolean`, Default: `false`
*nvim-tree.actions.change_dir.restrict_above_cwd*

View File

@@ -162,12 +162,14 @@ function M.fn(default_modifier)
return
end
M.rename(node, prepend .. new_file_path .. append)
local full_new_path = prepend .. new_file_path .. append
M.rename(node, full_new_path)
if not M.config.filesystem_watchers.enable then
explorer:reload_explorer()
end
find_file(utils.path_remove_trailing(new_file_path))
find_file(utils.path_remove_trailing(full_new_path))
end)
end
end