Count the aditional lines that will be needed by the new size, if more than 'new_lines', send to history.