use bwipeout instead of bdelete

remotes/origin/HEAD
pseudometa 2022-12-06 23:12:06 +01:00
parent 251feac157
commit 54a121ac11
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ local function fileOp(op)
local success, errormsg = os.rename(oldName, newName)
if success then
cmd {cmd = "edit", args = {filepath}}
cmd("bdelete #")
cmd("bwipeout #")
vim.notify(' Renamed "' .. oldName .. '" to "' .. newName .. '". ')
else
vim.notify(" Could not rename file: " .. errormsg, logError)
@ -157,7 +157,7 @@ function M.trashFile(opts)
local success, errormsg = os.rename(currentFile, trash .. filename)
if success then
cmd [[bdelete]]
cmd [[bwipeout]]
vim.notify(' "' .. filename .. '" deleted. ')
else
vim.notify(" Could not delete file: " .. errormsg, logError)