summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/finsh/msh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/finsh/msh.c b/components/finsh/msh.c
index f7e40c8841..f308e70ace 100644
--- a/components/finsh/msh.c
+++ b/components/finsh/msh.c
@@ -405,7 +405,10 @@ void msh_auto_complete_path(char *path)
ptr = path;
for (;;)
{
- if (*ptr == '/') index = ptr + 1; if (!*ptr) break; ptr ++;
+ if (*ptr == '/') index = ptr + 1;
+ if (!*ptr) break;
+
+ ptr ++;
}
if (index == RT_NULL) index = path;