src/main/java/seedu/address/ui/autocompleter/Autocompleter.java
private void resetIndexIfNeeded() {
        if (!state.equals(AutocompleteState.MULTIPLE_COMMAND)) {
            resultIndex = 0;
        }
    }
/**
     * Resets the value of resultIndex to 0 if the the autocompleter was not cycling through possible options
     * in its previous state
     */
Resets the value of resultIndex to 0 if the the autocompleter was not cycling through possible options
in its previous state
Resets the value of resultIndex to 0 if the the autocompleter was not cycling through possible options in its previous state
private void resetIndexIfNeeded() {
        if (!state.equals(AutocompleteState.MULTIPLE_COMMAND)) {
            resultIndex = 0;
        }
    }
private void resetIndexIfNeeded ( ) { if ( ! state . equals ( AutocompleteState . MULTIPLE_COMMAND ) ) { resultIndex = 0 ; } }
Resets the value of resultIndex to 0 if the the autocompleter was not cycling through possible options
 in its previous state
Resets the value of resultIndex to 0 if the the autocompleter was not cycling through possible options in its previous state