Revision 4b8243d7

View differences:

core/src/aos_shell.c
1586 1586
      case ACTION_RECALLPREVIOUS:
1587 1587
      {
1588 1588
        // if the input was cleared but the current entry is occupied by a modified copy of a history entry, skip the current entry
1589
        if (rdata->buffer.selected == 0 && rdata->buffer.edited > 1) {
1589
        if (shell->input.nentries > 1 && rdata->buffer.selected == 0 && rdata->buffer.edited != 1) {
1590 1590
          rdata->buffer.selected += 2;
1591 1591
        } else {
1592 1592
          ++rdata->buffer.selected;

Also available in: Unified diff