diff --git a/apps/shell/src/shcmd.c b/apps/shell/src/shcmd.c index bc28932bd8544fb5662a7a084f0fdc4b2379d2bd..5d04431afa4250b8fe175b84dd0775cdd737b6fd 100755 --- a/apps/shell/src/shcmd.c +++ b/apps/shell/src/shcmd.c @@ -457,17 +457,11 @@ unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size) int OsTabCompletion(char *cmdKey, unsigned int *len) { int count; - char *cmdMainStr = cmdKey; if ((cmdKey == NULL) || (len == NULL)) { return (int)SH_ERROR; } - /* cut left space */ - while (*cmdMainStr == 0x20) { - cmdMainStr++; - } - count = OsTabMatchFile(cmdKey, len); return count;