From 6e8603557eaccd15f15ba2ed7b8ee9be9a1b51b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E9=92=A6=E8=A1=97?= <15390014138@163.com> Date: Fri, 5 Feb 2021 11:01:05 +0800 Subject: [PATCH] update apps/shell/src/shcmd.c. --- apps/shell/src/shcmd.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/shell/src/shcmd.c b/apps/shell/src/shcmd.c index 06845ac8..b91462db 100644 --- a/apps/shell/src/shcmd.c +++ b/apps/shell/src/shcmd.c @@ -456,17 +456,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;