update caret history when selection changed
support resize table column