Fixed a very important bug in the line_double_capacity_if_full function and started working on the vte