提交 782c288d 编写于 作者: 马志远

Repair that the tab key on msh do not work.

上级 8a1e6c01
......@@ -884,7 +884,7 @@ MSH_CMD_EXPORT(list_device, list device in system);
long list(void)
{
rt_kprintf("--Function List:\n");
rt_kprintf("--Commands List:\n");
{
struct finsh_syscall *index;
for (index = _syscall_table_begin;
......@@ -904,6 +904,6 @@ long list(void)
return 0;
}
MSH_CMD_EXPORT(list, list all symbol in system)
MSH_CMD_EXPORT(list, list all commands in system)
#endif /* RT_USING_FINSH */
......@@ -584,9 +584,7 @@ void msh_auto_complete(char *prefix)
for (index = _syscall_table_begin; index < _syscall_table_end; FINSH_NEXT_SYSCALL(index))
{
/* skip finsh shell function */
if (strncmp(index->name, "__cmd_", 6) != 0) continue;
cmd_name = (const char *) &index->name[6];
cmd_name = (const char *) index->name;
if (strncmp(prefix, cmd_name, strlen(prefix)) == 0)
{
if (min_length == 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册