fix remove space: offset caret position for write char after triple click