提交 6e860355 编写于 作者: 冷钦街 提交者: Gitee

update apps/shell/src/shcmd.c.

上级 71144b4a
...@@ -456,17 +456,11 @@ unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size) ...@@ -456,17 +456,11 @@ unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size)
int OsTabCompletion(char *cmdKey, unsigned int *len) int OsTabCompletion(char *cmdKey, unsigned int *len)
{ {
int count; int count;
char *cmdMainStr = cmdKey;
if ((cmdKey == NULL) || (len == NULL)) { if ((cmdKey == NULL) || (len == NULL)) {
return (int)SH_ERROR; return (int)SH_ERROR;
} }
/* cut left space */
while (*cmdMainStr == 0x20) {
cmdMainStr++;
}
count = OsTabMatchFile(cmdKey, len); count = OsTabMatchFile(cmdKey, len);
return count; return count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册