feat: prompt user to save changes before editing moved file/dir (#93)

This commit is contained in:
Steven Arcangeli 2023-05-06 22:48:37 -07:00
parent 3cbebc2b0c
commit 6b05c2e913
7 changed files with 39 additions and 10 deletions

View file

@ -528,7 +528,7 @@ M.try_write_changes = function(confirm)
-- get the entry under the cursor and make sure the cursor stays on it
view.set_last_cursor(
vim.api.nvim_buf_get_name(0),
vim.split(current_entry.name, "/")[1]
vim.split(current_entry.parsed_name or current_entry.name, "/")[1]
)
end
view.rerender_all_oil_buffers({ preserve_undo = M.trash })