Fix reselection of last pasted text