preserve cursor position when toggling cleared status in insert mode