-- Output from buffer.

function ChangeBuffer:moveLinesTo(lines: Array<Diff>): ()
	if not self:isLineEmpty() then
		self:pushLine()
	end

	for _, value in ipairs(self.lines) do
		table.insert(lines, value)
	end
	self.lines = {}
end
