moveFromSel write file after adding content
parent
10c5ffdb9f
commit
cb13b75012
|
|
@ -67,11 +67,11 @@ local function fileOp(op)
|
||||||
vim.notify(" Renamed '" .. oldName .. "' to '" .. newName .. "'.")
|
vim.notify(" Renamed '" .. oldName .. "' to '" .. newName .. "'.")
|
||||||
elseif op == "new" or op == "newFromSel" then
|
elseif op == "new" or op == "newFromSel" then
|
||||||
cmd("edit " .. filepath)
|
cmd("edit " .. filepath)
|
||||||
cmd("write " .. filepath)
|
|
||||||
if op == "newFromSel" then
|
if op == "newFromSel" then
|
||||||
cmd("put z")
|
cmd("put z")
|
||||||
fn.setreg("z", prevReg) -- restore register content
|
fn.setreg("z", prevReg) -- restore register content
|
||||||
end
|
end
|
||||||
|
cmd("write " .. filepath)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue