or you could pass the shadowCursor's range directly into selectRange? If you already have the range, do you even need to call selectRange? I think selectRange just set's the local cursor's selection... which you've already fetched here