handing replace-under-cursor