use bwipeout instead of bdelete
parent
251feac157
commit
54a121ac11
|
|
@ -67,7 +67,7 @@ local function fileOp(op)
|
||||||
local success, errormsg = os.rename(oldName, newName)
|
local success, errormsg = os.rename(oldName, newName)
|
||||||
if success then
|
if success then
|
||||||
cmd {cmd = "edit", args = {filepath}}
|
cmd {cmd = "edit", args = {filepath}}
|
||||||
cmd("bdelete #")
|
cmd("bwipeout #")
|
||||||
vim.notify(' Renamed "' .. oldName .. '" to "' .. newName .. '". ')
|
vim.notify(' Renamed "' .. oldName .. '" to "' .. newName .. '". ')
|
||||||
else
|
else
|
||||||
vim.notify(" Could not rename file: " .. errormsg, logError)
|
vim.notify(" Could not rename file: " .. errormsg, logError)
|
||||||
|
|
@ -157,7 +157,7 @@ function M.trashFile(opts)
|
||||||
local success, errormsg = os.rename(currentFile, trash .. filename)
|
local success, errormsg = os.rename(currentFile, trash .. filename)
|
||||||
|
|
||||||
if success then
|
if success then
|
||||||
cmd [[bdelete]]
|
cmd [[bwipeout]]
|
||||||
vim.notify(' "' .. filename .. '" deleted. ')
|
vim.notify(' "' .. filename .. '" deleted. ')
|
||||||
else
|
else
|
||||||
vim.notify(" Could not delete file: " .. errormsg, logError)
|
vim.notify(" Could not delete file: " .. errormsg, logError)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue