moveFromSel write file after adding content
parent
10c5ffdb9f
commit
cb13b75012
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue