moveFromSel write file after adding content

remotes/origin/HEAD
Craftidore 2022-11-21 18:26:06 -06:00
parent 10c5ffdb9f
commit cb13b75012
1 changed files with 1 additions and 1 deletions

View File

@ -67,11 +67,11 @@ local function fileOp(op)
vim.notify(" Renamed '" .. oldName .. "' to '" .. newName .. "'.")
elseif op == "new" or op == "newFromSel" then
cmd("edit " .. filepath)
cmd("write " .. filepath)
if op == "newFromSel" then
cmd("put z")
fn.setreg("z", prevReg) -- restore register content
end
cmd("write " .. filepath)
end
end)
end