Skip to content

Commit

Permalink
fix(actions.rename): correctly pass absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
fdschmidt93 committed Nov 15, 2023
1 parent 8957ede commit d527044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/telescope/_extensions/file_browser/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,9 @@ fb_actions.move = function(prompt_bufnr)
new_name = new_path.filename,
}
if not selection:is_dir() then
fb_utils.rename_buf(old_path, new_path)
fb_utils.rename_buf(old_path, new_path:absolute())
else
fb_utils.rename_dir_buf(old_path, new_path)
fb_utils.rename_dir_buf(old_path, new_path:absolute())
end
fb_utils.rename_buf(old_path, new_path:absolute())
table.insert(moved, filename)
Expand Down

0 comments on commit d527044

Please sign in to comment.