ensure writing buffer for hidden=false
parent
b9f04ae0f2
commit
10c5ffdb9f
|
|
@ -55,6 +55,7 @@ local function fileOp(op)
|
||||||
end
|
end
|
||||||
local filepath = dir .. "/" .. newName
|
local filepath = dir .. "/" .. newName
|
||||||
|
|
||||||
|
cmd[[update]] -- save current file; needed for people using `vim.opt.hidden=false`
|
||||||
if op == "duplicate" then
|
if op == "duplicate" then
|
||||||
cmd("saveas " .. filepath)
|
cmd("saveas " .. filepath)
|
||||||
cmd("edit " .. filepath)
|
cmd("edit " .. filepath)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue