|
|
| version 1.8.2.4, 2013/10/08 09:30:55 | version 1.8.2.6, 2013/10/08 09:41:20 |
|---|---|
| Line 499 bufHelp(int idx, void * __restrict cli_buffer) | Line 499 bufHelp(int idx, void * __restrict cli_buffer) |
| if (!cli_buffer || idx < 0 || idx > MAX_BINDKEY) | if (!cli_buffer || idx < 0 || idx > MAX_BINDKEY) |
| return RETCODE_ERR; | return RETCODE_ERR; |
| cli_Cmd_Help(buf, -1, NULL); | cli_Cmd_Help(buf, buf->line_level, NULL); |
| printfEOL(buf, buf->line_len - 1, 1); | printfEOL(buf, buf->line_len - 1, 1); |
| printfEOL(buf, -1, 1); | printfEOL(buf, -1, 1); |
| Line 1469 cliLoop(linebuffer_t * __restrict cli_buffer, const ch | Line 1469 cliLoop(linebuffer_t * __restrict cli_buffer, const ch |
| // exec_cmd ... | // exec_cmd ... |
| i = 0; | i = 0; |
| SLIST_FOREACH(cmd, &cli_buffer->line_cmds, cmd_next) { | SLIST_FOREACH(cmd, &cli_buffer->line_cmds, cmd_next) { |
| if (cmd->cmd_level != cli_buffer->line_level) | |
| continue; | |
| if (*items[0] && !strncmp(cmd->cmd_name, items[0], strlen(items[0]))) | if (*items[0] && !strncmp(cmd->cmd_name, items[0], strlen(items[0]))) |
| break; | break; |
| else | else |