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