Removing cmdIndex, replaced by cmdHistory.index.