Fixed the cursor jumping when the last number in the last group gets moved to a previous group from a delete action.