Keep cursor position when using replace_all action