I am having a big problem with tabs in my text editor. If they would be all the same size, that would be OK. I put a vis_len member into my linked line struct along with len. The problem is that their size may vary depending on where they are put. So I made the add/remove character functions count up to the next multiple of 8 from the column position and add/remove the amount of iterations to vis_len. Then I thought, what if there are tabs before this tab! that would make it so that the size of previous tabs is not taken into account, and mess everything up. I have no idea what to do now.