We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e75c07 commit 793a78fCopy full SHA for 793a78f
components/finsh/shell.c
@@ -823,7 +823,7 @@ static void finsh_push_snapshot(void)
823
}
824
825
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. */
+ /* Update cur_snapshot to point to the newly inserted snapshot (most recent). */
827
shell->cur_snapshot = &snap->list;
828
shell->is_push_last_snapshot = RT_FALSE;
829
0 commit comments