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.
1447
1447
1448
1448
*nvim-tree.actions.change_dir.global*
1449
1449
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.
1452
1450
Type: `boolean ` , Default: `false`
1453
1451
1454
1452
*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)
162
162
return
163
163
end
164
164
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 )
166
168
if not M .config .filesystem_watchers .enable then
167
169
explorer :reload_explorer ()
168
170
end
169
171
170
- find_file (utils .path_remove_trailing (new_file_path ))
172
+ find_file (utils .path_remove_trailing (full_new_path ))
171
173
end )
172
174
end
173
175
end
You can’t perform that action at this time.
0 commit comments