Fixed tab char was messing up caret position