But the index is set to another value because there is no more context (first few chars in row), and the index is used to set the cm selection later on.
Without re-setting, the selection will be on the wrong place (this is the reason why this code is there).