Skip to content

Commit 793a78f

Browse files
youzuweiCopilot
andauthored
Update components/finsh/shell.c
Co-authored-by: Copilot <[email protected]>
1 parent 7e75c07 commit 793a78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/finsh/shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static void finsh_push_snapshot(void)
823823
}
824824

825825
rt_list_insert_after(&shell->snapshot_list, &snap->list);
826-
/* set the current snapshot to the new snapshot, the "cur_snapshot" always starts from the first snapshot. */
826+
/* Update cur_snapshot to point to the newly inserted snapshot (most recent). */
827827
shell->cur_snapshot = &snap->list;
828828
shell->is_push_last_snapshot = RT_FALSE;
829829
}

0 commit comments

Comments
 (0)