Fix input window cutting off last character.