redraw styledText when caret moves