Revision 474a0731 core/src/aos_shell.c

View differences:

core/src/aos_shell.c
1419 1419

  
1420 1420
        // only execute autofill if the line is valid
1421 1421
        if (line) {
1422
          _prepare4Modification(shell, rdata);
1423

  
1424 1422
          // iterate through command list
1425 1423
          for (aos_shellcommand_t* cmd = shell->commands; cmd != NULL; cmd = cmd->next) {
1426 1424
            // compare current match with command
......
1465 1463
          // print the auto fill if any
1466 1464
          if ((cmatch > rdata->input.cursorpos) ||
1467 1465
              (cmatch == rdata->input.cursorpos && matchlevel == CHAR_MATCH_NCASE && strlen(fill) == rdata->input.cursorpos)) {
1466
            line = _prepare4Modification(shell, rdata);
1468 1467
            // limit auto fill so it will not overflow the line width
1469 1468
            if (rdata->input.length + (cmatch - rdata->input.cursorpos) > shell->input.linewidth) {
1470 1469
              cmatch = shell->input.linewidth - rdata->input.length + rdata->input.cursorpos;

Also available in: Unified diff