fix char-width calculation for the input and the scrollbackindicator