Another fix for insertion from Balazs Kezes. On insertion, size the line
just enough for the inserted characters.