Preserving the selection for a non-range selection already works as expected; however, the test for a selection range shows an undesired behavior.