fix text_view cursor pos